Don't ask to ask, just ask | |
PerlMonks |
Regexp to match regardless of whitespaceby austinj (Acolyte) |
on May 03, 2012 at 16:34 UTC ( [id://968769]=perlquestion: print w/replies, xml ) | Need Help?? |
austinj has asked for the wisdom of the Perl Monks concerning the following question: CONSTR(1,29) = TEXTHERE, TEXTHERE, TEXTHERE, TEXTHERE, 90.0, (10 * 0.01 /TEXTHERE), ! P.O. TEXTHERE I have that line and many others like it, I need to be able to match no matter what whitespace is included in between text, parenthesis, commas etc. so match " w o r ds ( 345 ) 3 45 other wor ds, aks " and "words(345)345otherwords,aks" and "words (345) 345 otherwords, aks" etc. I know I can put a /s* between every character in the expression, is there an easier way? I looked through the modifiers and couldn't find one.
Back to
Seekers of Perl Wisdom
|
|