I'm trying to check for a plus sign using PHP and regular expressions.
Here is the code I got so far.
preg_replace('#[^-a-zA-Z0-9_&; ]#', '', $abcd)
You might just need to escape the plus sign with a backslash: +.
+
2.1m questions
2.1m answers
60 comments
57.0k users