I'm using preg_match() and I am trying to search a string for a bunch of characters but the $ is giving me a ton of grief...
I have attempted the following forms of escaping it:
So how do you escape a $ character within a regex in php?PHP Code:'/\$/'
'/\\$/'
//and
'/\\\$/'
//I've also attempted this using double quotes with no luck...


Reply With Quote
