I have the following Regex (in PHP) that I am using.
'/^[a-zA-Z0-9&\'\s]+$/'
It currently accepts alpha-numerics only. I need to modify it to accept hyphens (i.e. the character '-' without the quotes obviously) as well.
So it will accept strings like 'bart-simpson' OR 'bond-007' etc.
Can anyone explain how to modiy the pattern?