From: John W. Krahn on 8 Nov 2009 04:27 Peter Stacy wrote: > In a file I am searching for (the first) expression which matches the following pattern: > > aabbcc('<some chars or digits but no special chars nor CRs>',<zero or one blank>'<one or more digits>'); First define how many "some" is and what are "some chars" and what are "special chars". > Mind the quotes ' ! Do I have to escape/mask them ? No. > How can I setup an according regular expression? /aabbcc\('[<chars>0-9]{<some>}', ?'[0-9]+'\);/ Where <chars> and <some> should be replaced with valid values. John -- The programmer is fighting against the two most destructive forces in the universe: entropy and human stupidity. -- Damian Conway
|
Pages: 1 Prev: regexpressions question Next: connect to localhost failed error with Mail::Sendmail on Windows |