in reply to perl look ahead regular expression that is optional?
Do you see where this contradicts?
compare: The second set of characters is always preceded by an X (...) and might contain (...) Only zero or one a, zero or one b, and zero or one c is (...)
to: foobarabcX must not match, nothing follows 'X'
I think it must match as X is followed by exactly zero "a"s, "b"s and "c"s.
s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl look ahead regular expression that is optional?
by bigsipper (Initiate) on Oct 04, 2013 at 00:54 UTC | |
Re^2: perl look ahead regular expression that is optional?
by talexb (Chancellor) on Oct 04, 2013 at 13:34 UTC |
In Section
Seekers of Perl Wisdom