ereg_replace and " ' [ ] \ characters
Moderator: General Moderators
ereg_replace and " ' [ ] \ characters
I have read about ereg_replace. I managed to make it work, but how do I replace " ' \ [ ] characters? They seem to conflict with the script.
Re: ereg_replace and " ' [ ] \ characters
You have to escape them with a backslash
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: ereg_replace and " ' [ ] \ characters
For future references you'll want to use the Regex forums for regex posts. 
Re: ereg_replace and " ' [ ] \ characters
Is there a whole forum for that?For future references you'll want to use the Regex forums for regex posts.
Like if I want to escape [ then I will have to do \[ ?You have to escape them with a backslash
Re: ereg_replace and " ' [ ] \ characters
Yeah, exactly: \[