Surely. What the regexp is doing is replacing anything that matches that which is between the first slashes with that which is in the second. The regex between the first slashes [tt][^a-z0-9][/tt] means a character not ([tt]^[/tt]) matching anything between 'a' and 'z' (case ignored because of the [tt]i[/tt] modifier at the end) or '0'-'9'. Anything that does not match this pattern gets replaced with nothing.
If you want to allow spaces you would change the left part to: [tt][^a-z0-9 ][/tt] (notice space after the 9)... or if you want to allow any space-like character (including tab): [tt][^a-z0-9\s][/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.