Regex not working
-
I’m attempting to use the
find=
andreplace=
attributes in the shortcode in order to remove links from the text, but it doesn’t seem to work. I’ve tested my regex here and it doesn’t look like the regex is the problem.Here is my code:
find="/<a\shref=\"(.*?)\">(.*?)<\/a>/igs"
replace="$2"
Do I have to use the tilde (~) delimiter? Can I not use modifiers?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Regex not working’ is closed to new replies.