I am trying to read some php code and was wondering why preg_replace always has the slashes. In the regex's I've written in C++, I don't do the same thing and was wondering why
PHP: preg_replace('/blah/', '', $str)
but in C++ I'd make a regex with just the string "blah"
Can I get some clarification here? What are the start and end slashes for? Thanks