in reply to Re: Using a regex to catch interpreters
in thread Using a regex to catch interpreters
>>> etc >>> etc >>> etc should be converted to PYTHON_PROMPT etc PYTHON_PROMPT etc PYTHON_PROMPT etc while >>> etc >>> etc >> etc should not. So, those read aheads / arrays / etc won't work, will they?
Also, re not using $1 for performance - it's not so much that I mind for this regex, it's that I'm under the impression that once you use $1 once, perl needs to track it for every regex in the entire program... which I don't want to slow down. Is there a way to tell Perl to only turn on $1 here, but no where else...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Using a regex to catch interpreters
by ikegami (Patriarch) on Jul 06, 2005 at 18:05 UTC | |
|
Re^3: Using a regex to catch interpreters
by eastcoastcoder (Sexton) on Jul 06, 2005 at 17:34 UTC |