Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and I would like to match consecutive hyphens while still allowing single hyphen. I have tried but I do not know how to add something like [\-{1}] into my expression. To clarify my regex should match -- but not -.[^0-9a-zA-Z\-]
2005-01-05 Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: basic regex help please
by cfreak (Chaplain) on Jan 05, 2005 at 17:09 UTC | |
|
Re: basic regex help please
by ikegami (Patriarch) on Jan 05, 2005 at 17:07 UTC | |
|
Re: basic regex help please
by davido (Cardinal) on Jan 05, 2005 at 17:25 UTC | |
by Anonymous Monk on Jan 06, 2005 at 09:58 UTC | |
|
Re: basic regex help please
by Moe (Novice) on Jan 05, 2005 at 17:13 UTC | |
|
Re: basic regex help please
by William G. Davis (Friar) on Jan 05, 2005 at 17:05 UTC | |
by ikegami (Patriarch) on Jan 05, 2005 at 17:08 UTC |