SamT_
-
Posts
26 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
How do you include a Space in Regex?
in PHP Coding Help
Posted
In your regex, you can use "\s" in your regex as a whitespace character. Don't forget you can also trim() your values prior to going through regex, as that can greatly reduce some of the necessary leading/trailing whitespace logic in your regular expression.