WordPress.org

Ready to get started?Download WordPress

Forums

Search Regex
is this the right syntax? (1 post)

  1. Martin
    Member
    Posted 1 year ago #

    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

    http://wordpress.org/plugins/search-regex/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags