in reply to Regex: Specifying quantity for bracketed items
Maybe you want something like this:
/ ^(?![ ]) # Doesn't start with a space .*? # Anything [a-z0-9]{5,12} # Has a 5..12 lowercases or digits in a row .* # Anything (?<![ ])$ # Doesn't end with a space /x
which will match
a1b2c3
BVBDa1b2c3
a1b2c3ZZZ
!@#a1b2c3$%^
! a1b2c3 FF
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Specifying quantity for bracketed items
by Eimi Metamorphoumai (Deacon) on Nov 10, 2004 at 22:07 UTC | |
by ikegami (Patriarch) on Nov 10, 2004 at 22:10 UTC |