in reply to Re^2: a regex pattern how to understand
in thread a regex pattern how to understand
Hmm, if perl matches it, why do you think that is?
If you turn on use re 'debug' ; what do you see?
I see
149 <Princ> <e Age: 53> | 21: CLOSE1(23) 149 <Princ> <e Age: 53> | 23: PLUS(25) SPACE can match 0 times out of 2 +147483647... failed... ANYOF[ A-Za-z][{unicode}+utf8::XPo +sixAlpha 00AA 00B5 00BA 00C0-00D6 00D8-00F6 00F8- 02C1] can match 1 times out of 1... 150 <rince> < Age: 53%n> | 21: CLOSE1(23) 150 <rince> < Age: 53%n> | 23: PLUS(25) SPACE can match 1 times out of 2 +147483647... 151 <ince > <Age: 53%nO> | 25: EXACT <Age:>(27) 155 < Age:> < 53%nOccup> | 27: PLUS(29) SPACE can match 1 times out of + 2147483647...
+? means match the least amount possible, the least amount doesn't include space, because the next pattern wants space
|
|---|