Aug 21, 2005 #1 memespring Programmer Joined Aug 21, 2005 Messages 2 Location 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 : )
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 : )
Aug 21, 2005 #2 JurkMonkey Programmer Joined Nov 23, 2004 Messages 1,731 Location CA I would recommend splitting the text up into lines and using the regex on each line. this would remove the confusion all together. Upvote 0 Downvote
I would recommend splitting the text up into lines and using the regex on each line. this would remove the confusion all together.
Aug 21, 2005 Thread starter #3 memespring Programmer Joined Aug 21, 2005 Messages 2 Location GB 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#. Upvote 0 Downvote
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#.
Aug 21, 2005 #4 chiph Programmer Joined Jun 9, 1999 Messages 9,878 Location US 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 Upvote 0 Downvote
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