WordPress.org

Ready to get started?Download WordPress

Forums

WPeMatico
Regex problem with slashes (2 posts)

  1. RoamFree
    Member
    Posted 3 years ago #

    When I use a slash in a regex, I get an error. This makes it hard to use a pattern like /\.+?\<\/a\>/ because the can't be used in the pattern.

    (The outer slashes are because PHP regex wants those, and I don't think they are automatically added)

  2. RoamFree
    Member
    Posted 2 years ago #

    Any hints of how to create regular expressions so we can use "Replace" with non-alphabetic characters? I think preg_replace() is being used, but my regex incantations seem to not work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags