Mar 1, 2006 #1 stort Programmer Feb 17, 2006 10 GB hi, is it possible to match the following characters in perl? / * \ I would like to remove all lines from a file if any of the above characters exist, but obviously they are special pattern matching characters. any ideas? cheers Stort
hi, is it possible to match the following characters in perl? / * \ I would like to remove all lines from a file if any of the above characters exist, but obviously they are special pattern matching characters. any ideas? cheers Stort
Mar 1, 2006 #2 TonyGroves Programmer Aug 13, 2003 2,389 IE Absolutely, just precede each with a backslash in the regex. Upvote 0 Downvote
Mar 1, 2006 Thread starter #3 stort Programmer Feb 17, 2006 10 GB I thought i tried that, but was putting \s for whitespace and forgot to put \s* for multiple whitespace it now works a treat thank you Upvote 0 Downvote
I thought i tried that, but was putting \s for whitespace and forgot to put \s* for multiple whitespace it now works a treat thank you