Hi,
I am trying to qualify any relative path using preg_match/preg_replace.
Here is what looks like before:
href = " / some_path" or
href = " some_path" or
href = some_path or
href = / some_path
When I do preg_match like the following,
if(preg_match("/href[=]=\s/i", $data)
.....
I get an error
(Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}')
The problem is from \s. Can anyone tell me how do I represent multiple white space here? (I have tried [[:space:]], [' '], [ ] etc. None of them worked with )
Thanks a lot.