Mar 1, 2006 #1 stort Programmer Joined Feb 17, 2006 Messages 10 Location 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 Joined Aug 13, 2003 Messages 2,389 Location IE Absolutely, just precede each with a backslash in the regex. Upvote 0 Downvote
Mar 1, 2006 Thread starter #3 stort Programmer Joined Feb 17, 2006 Messages 10 Location 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