Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regular Expressions and Escapeing

Status
Not open for further replies.

memespring

Programmer
Aug 21, 2005
2
GB
When you rite a regular expression does it need to match escaped or unescaped text? (i.e. with all the \", \n\t).

This is doing my head in : )
 
I would recommend splitting the text up into lines and using the regex on each line.

this would remove the confusion all together.
 
I wish I could, but I'm trying to scrape a webpage where I dont know the contents of each line.

Ive got a working RegEx (working in a tester tool anyway) but it wont work within C#.
 
Only put it in the regex if you want to match on it.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top