Tinkster has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I wrote a program on my workstation using 5.10.1, and used (?| ... ) in my regex which made life very easy for using the capturing parenthesis in an expression w/ alternatives ... is there a simple way to achieve a similar result in perl 5.8.8?
(?|OTHFIL\.(A-Z{3})|(A-Z{3})FIL)
Cheers
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl 5.8.8 equivalent of ?|
by JavaFan (Canon) on Dec 13, 2010 at 01:10 UTC | |
|
Re: perl 5.8.8 equivalent of ?|
by Anonyrnous Monk (Hermit) on Dec 13, 2010 at 00:38 UTC | |
|
Re: perl 5.8.8 equivalent of ?|
by ambrus (Abbot) on Dec 13, 2010 at 07:52 UTC | |
by Anonyrnous Monk (Hermit) on Dec 13, 2010 at 09:10 UTC | |
by ambrus (Abbot) on Dec 13, 2010 at 09:38 UTC |