Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- preg_match help
December 1, 2006, 6:42 am
rate this thread
I dont want it to start with a number????
any ideas much appreciated. As i am so frustrated with the preg_match
Re: preg_match help
I haven't tested this, but you probably want something along these lines:
A '^' (carat) inside of '' means NOT (so, '[^A-Z]' means any single
character EXCEPT an upper-case letter). A '^' outside of '' means start of
The above pattern, then, is looking for...
Start of line THEN a single alphabetic character (upper- or lower-case) THEN
zero or more alphabetic characters (upper- or lower-case) or decimal digits
THEN end of line (the '$' means end of line).
That's it really.