Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
ASP Regular Expression Pattern Help!
Old 05-15-2011, 08:22 PM ASP Regular Expression Pattern Help!
kline11's Avatar
SearchBliss Web Tools

Posts: 1,787
Name: John
Location: USA
Trades: 0
Hello ASP Gurus (i.e.Chris Hirst), I am really going crazy with this one, and noting seems to work.

Here is an example that works (one line):
re.Global = true
re.Multiline = true
re.Pattern = "<TAG1>(.*)?</TAG1>"

Here is what I need and it fails (3 lines):
re.Global = true
re.Multiline = true
re.Pattern = "<TAG1>(.*)?+\n\n+</TAG3>"

The </TAG3> is 2 lines under the opening <TAG1> and there are no spaces. I used "\n", "\n\r", etc, to compensate for the carraige returns with NO luck.

What am I missing??? Thanks for your help!
__________________

Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-16-2011, 07:49 AM Re: ASP Regular Expression Pattern Help!
chrishirst's Avatar
Defies a Status

Posts: 43,957
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
I can recall having similar problems when i was building my link spider several years ago

www .candsdesign.co.uk/tools/site-check/text-links/
www .candsdesign.co.uk/tools/site-check/link-check/

I'll dig the code out of the attic erm archives and see how I got around the problem.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-16-2011, 02:58 PM Re: ASP Regular Expression Pattern Help!
kline11's Avatar
SearchBliss Web Tools

Posts: 1,787
Name: John
Location: USA
Trades: 0
Thanks Chris! This one is really making me nuts.
__________________

Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Old 05-16-2011, 04:48 PM Re: ASP Regular Expression Pattern Help!
chrishirst's Avatar
Defies a Status

Posts: 43,957
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
...  +[" & vbCrLf|vbCr|vbLf & "](2) ...
Should match two windows newlines
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-16-2011, 07:16 PM Re: ASP Regular Expression Pattern Help!
kline11's Avatar
SearchBliss Web Tools

Posts: 1,787
Name: John
Location: USA
Trades: 0
That worked perfectly! Thanks Chris!
__________________

Please login or register to view this content. Registration is FREE
kline11 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP Regular Expression Pattern Help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22286 seconds with 11 queries