Becky has asked for the wisdom of the Perl Monks concerning the following question:
will it search for all the patterns, or will it only search for DPL. if that's what it finds first? I need it to find all strings matching all these patterns somehow!while ($str=~ /(DPL.|RVL.|[IV]LK.|FVK.)/g)
edited: 17 Jun 2002 by jeffa - added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use of 'or' in regex
by RMGir (Prior) on Jun 17, 2002 at 13:23 UTC | |
|
Re: use of 'or' in regex
by marvell (Pilgrim) on Jun 17, 2002 at 13:26 UTC | |
|
Re: use of 'or' in regex
by mrbbking (Hermit) on Jun 17, 2002 at 15:05 UTC |