That should be \0322. The leading zero makes it an octal number. \322 matches a previously captured match.
Update: Hmmm... I dropped the ball on regex numbers. This seems to do what you want:
The minimalizing '?' seems to be the problem. Enclosing (.*?) in parens also works.$ perl -w -e '$_="Hello there\n"; s/t/\322/; print; s/^.*\322/yes/; pr +int' Hello ̉here yeshere
After Compline,
Zaxo
In reply to Re: High bit bug in RE?
by Zaxo
in thread High bit bug in RE?
by tommyw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |