Re: Checking for plus signs?
| From: | Jeff Sheltren | Date: | Fri, 08 Feb 2002 01:43:52 +0000 |
| Subject: | Re: Checking for plus signs? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83946@lists.php.net to get a copy of this message | ||
The plus is a special character for regular expressions. You need to escape it in order to search for a literal +
Try this:
eregi("\\+", $variable)
Jeff
At 08:40 PM 2/7/2002 -0500, you wrote:
I'm trying "if(eregi("+",$variable)){", but it gives me an error. What do I do?