Help for this page

Select Code to Download


  1. or download this
    G:\cblead2\win32>perl -e "print $& if 'foobar'=~/foo|foobar/"
    foo
    ...
    foobar
    G:\cblead2\win32>perl -e "print $& if 'foobar'=~/foo(?:bar)?/"
    foobar
    
  2. or download this
    G:\>g:\perl_trie\bin\perl regexp.pl --words=foo;foobar;baz;bop;brief;z
    +oo g:\perl_blead\bin\perl.exe
    used the following Regex modules: Regexp::List, Regexp::Assemble,
    ...
    A_smpl  124/s    73%    64%    64%   63%    50%   49%    49%    18%   
    + 9%     --
    
    G:\>