in reply to High bit bug in RE?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: High bit bug in RE?
by tommyw (Hermit) on Sep 14, 2001 at 13:16 UTC | |
by japhy (Canon) on Sep 14, 2001 at 17:24 UTC |