Hagbone has asked for the wisdom of the Perl Monks concerning the following question:
What I'd like to do is also specify the minimum (5) and maximum (12) number of characters allowed ...., and I tried:/^[^ ]+[a-z0-9]+[^ ]+$/
But that doesn't appear to do it .... can anyone straighten me out on this one?/^[^ ]+[a-z0-9]{5,12}[^ ]+$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex: Specifying quantity for bracketed items
by tall_man (Parson) on Nov 10, 2004 at 21:21 UTC | |
|
Re: Regex: Specifying quantity for bracketed items
by tachyon (Chancellor) on Nov 10, 2004 at 21:32 UTC | |
|
Re: Regex: Specifying quantity for bracketed items
by injunjoel (Priest) on Nov 10, 2004 at 21:17 UTC | |
|
Re: Regex: Specifying quantity for bracketed items
by ikegami (Patriarch) on Nov 10, 2004 at 21:36 UTC | |
by Eimi Metamorphoumai (Deacon) on Nov 10, 2004 at 22:07 UTC | |
by ikegami (Patriarch) on Nov 10, 2004 at 22:10 UTC | |
|
Re: Regex: Specifying quantity for bracketed items
by Hagbone (Monk) on Nov 11, 2004 at 00:05 UTC |