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...
 
 




Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com