RE: class regex
- From: cclarkson@xxxxxxxxxx (Charles K. Clarkson)
- Date: Mon, 29 Aug 2005 04:00:23 -0500
Brent Clark <mailto:bclark@xxxxxxxxxxxxxxxxxxxx> wrote:
: I have im trying to enhance my regex skill.
:
: My questions is, would
:
: m/^p11[016]/io
:
: match like
:
: m/^(p110|p111|p116)/io
Yes.
: Any tips or advice, would greatfully be appreciated.
Why not test you regex to see if it works? Asking
questions here will take much more time than testing.
foreach my $value ( @list_of_test_values ) {
print qq($value matches "m/^(p110|p111|p116)/io"\n)
if $value =~ m/^(p110|p111|p116)/io;
print qq($value matches "m/^p11[016]/io"\n)
if $value =~ m/^p11[016]/io;
}
HTH,
Charles K. Clarkson
--
Mobile Homes Specialist
254 968-8328
.
- References:
- class regex
- From: Brent Clark
- class regex
- Prev by Date: open and edit file to prevent race conditions
- Next by Date: RE: Posting all files in a directory as hyperlinks
- Previous by thread: class regex
- Next by thread: Re: class regex
- Index(es):
Relevant Pages
|
|