is this the right syntax?
-
Hi,
I’m a regex newbie but have got a regex builder telling me I have the right syntax yet I get an error from this plugin: Invalid regular expression: Delimiter must not be alphanumeric or backslash
What I’m trying to do is rid my site of a Youtube plugin shortcode since WP now natively supports Youtube videos.
So I’m using the following regex:
\[youtube_video](.*?)\[/youtube_video]
with a replace of:
https://www.youtube.com/watch?v=$1
but still get the error.Am I doing something wrong in getting this to work with this plugin?
Any help would be magic.
Thanks Martin
- The topic ‘is this the right syntax?’ is closed to new replies.