|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Pattern matching of the type?by jynx (Priest) |
| on Dec 12, 2001 at 13:00 UTC ( #131191=note: print w/ replies, xml ) | Need Help?? |
|
some assumptions first:
1) you want at least one number or digit first The pattern match would be: This uses the prefix 'm' so that i can use different pattern match delimiters, in this case the dash. This way i don't have to escape the slash in '/pin', either in the match or in the comments :) This snippet doesn't capture correctly at all, but it should match the pattern i'm assuming you want. Maybe you can be a bit more specific? jynx
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||