Escaping chars using Regex
-
I’m using s2Member Plugin.
It adds a “wp_s2member_custom_fields” meta to the wp_usermeta table, containing text strings as serialized data.A way to search text strings into serialized data is by using a RegEx:
.*"meta_key";s:[0-9]+:"meta_value".*
In order to search Naples as City, I’d need to use something like this:
[userlist meta_key="wp_s2member_custom_fields" meta_value=".*"city";s:[0-9]+:"naples".*" meta_compare="REGEXP"]
I tried to escape ” chars using \” and “” but it doesn’t work.
Any help?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Escaping chars using Regex’ is closed to new replies.