.NETGURU
Regular Expression madness
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngregexp' list.


RATSEY-WOODROFFE, Jens, FM
-- Moved from [aspngfreeforall] to [aspngregexp] by Tim Musschoot <Click here to reveal e-mail address> --

I'm going bananas here ... can someone tell me why this search isn't
working?

Regex: \[H1].+?\[/H1]
Text:    [H1]This is a header[/H1][H1]Also a header[/H1]

I'm trying to get 2 hits containing each of the 'tags'.

Help?!    

********************************************************************
Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority
********************************************************************

Reply to this message...
 
    
Wayne King (ASP.NET)
You should be getting two matches when using that regex pattern & text.
Can you post a snippet of the code you're using?

-----Original Message-----
From: RATSEY-WOODROFFE, Jens, FM [mailto:Click here to reveal e-mail address]

Sent: Tuesday, July 23, 2002 1:54 PM
To: aspngregexp
Subject: [aspngregexp] Regular Expression madness

-- Moved from [aspngfreeforall] to [aspngregexp] by Tim Musschoot
<Click here to reveal e-mail address> --

I'm going bananas here ... can someone tell me why this search isn't
working?

Regex: \[H1].+?\[/H1]
Text:    [H1]This is a header[/H1][H1]Also a header[/H1]

I'm trying to get 2 hits containing each of the 'tags'.

Help?!=09

Reply to this message...
 
    
Darren Neimke
Try something like:
    \[H1\].*?\[\/H1\]

-----Original Message-----
From: RATSEY-WOODROFFE, Jens, FM [mailto:Click here to reveal e-mail address]

Sent: Wednesday, July 24, 2002 6:24 AM
To: aspngregexp
Subject: [aspngregexp] Regular Expression madness

-- Moved from [aspngfreeforall] to [aspngregexp] by Tim Musschoot
<Click here to reveal e-mail address> --

I'm going bananas here ... can someone tell me why this search isn't
working?

Regex: \[H1].+?\[/H1]
Text:    [H1]This is a header[/H1][H1]Also a header[/H1]

I'm trying to get 2 hits containing each of the 'tags'.

Help?!=09

********************************************************************
Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information, if
you are not the named addressee, you are not authorised to retain, read,
copy or disseminate this message or any part of it. The Royal Bank of
Scotland is registered in Scotland No 90312 Registered Office: 36 St
Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services
Authority
********************************************************************
| [aspngregexp] member Click here to reveal e-mail address =3D YOUR ID=20
| http://www.asplists.com/asplists/aspngregexp.asp =3D JOIN/QUIT=20
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
    
Darren Neimke
http://www.asp.net/Forums/ShowPost.aspx?tabindex=3D1&PostID=3D18396

Reply to this message...
 
    
RATSEY-WOODROFFE, Jens, FM
I ran it in .Net and it worked as expected - I was developing the expression
using Textpad which doesn't appear to behave in the same way.

Sorry for wasting your time, but thanks anyway!

J.

-----Original Message-----
From:     Wayne King (ASP.NET) [mailto:Click here to reveal e-mail address]
Sent:    Wednesday, July 24, 2002 1:23 PM
To:    aspngregexp
Subject:    [aspngregexp] RE: Regular Expression madness

You should be getting two matches when using that regex pattern & text.
Can you post a snippet of the code you're using?

-----Original Message-----
From: RATSEY-WOODROFFE, Jens, FM [mailto:Click here to reveal e-mail address]

Sent: Tuesday, July 23, 2002 1:54 PM
To: aspngregexp
Subject: [aspngregexp] Regular Expression madness

-- Moved from [aspngfreeforall] to [aspngregexp] by Tim Musschoot
<Click here to reveal e-mail address> --

I'm going bananas here ... can someone tell me why this search isn't
working?

Regex: \[H1].+?\[/H1]
Text:    [H1]This is a header[/H1][H1]Also a header[/H1]

I'm trying to get 2 hits containing each of the 'tags'.

Help?!    

| [aspngregexp] member Click here to reveal e-mail address = YOUR ID
| http://www.asplists.com/asplists/aspngregexp.asp = JOIN/QUIT
| http://www.asplists.com/search = SEARCH Archives

***********************************************************************
Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority
***********************************************************************

Reply to this message...
 
 




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification