Re: [opensuse] OT perl regex question



On Wednesday 20 August 2008 14:40:50 Per Jessen wrote:
Can anyone epxlain to me what the 'o' modifier achieves (or not) in this
example:

$copy =~ s/[[:graph:]]+//go;

It means that the regexp engine will precompile the regular expression, and
not recompile it every time the line is executed. Described in "man perlop"

Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: [opensuse] OT perl regex question
    ... It means that the regexp engine will precompile the regular ... and not recompile it every time the line is executed. ...
    (SuSE)
  • Re: [opensuse] OT perl regex question
    ... It means that the regexp engine will precompile the regular ... and not recompile it every time the line is executed. ...
    (SuSE)
  • Re: Shrink large file according to REG_EXP
    ... perlreref) tells Perl to compile the regular expression only once. ... handle this automatically if the pattern does not change. ... Perl won't recompile the regular expression ...
    (comp.lang.perl.misc)
  • precompiled regular expressions
    ... whats the right way to precompile a regular expression that gets used multiple times without changing. ...
    (perl.beginners)
  • Re: re bug
    ... That's not the same regular expression. ... > time may be due to excessive backtracking as the regexp engine tries ... Nesting repeating qualifiers deeply is a good ...
    (comp.lang.python)