If you can define how something starts using preg_match, can you define what character(s) something ends with.
For example, the following would have to start with an upper-case letter.
If I'm building a random password generator can I use the same syntax as above to define the characters in the password?
For example, the following would have to start with an upper-case letter.
PHP Code:
/^[A-Z][a-zA-Z]$/
Comment