WordPress.org

Forums

WP-o-Matic
Regex function doubling backslashes making invalid expressions (1 post)

  1. streamsflowing
    Member
    Posted 2 years ago #

    When I enter this Regex:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum's parser. ]

    [\s\S]*[\s\S]*<a>[\s\S]*</div>[\s\S]*<div><span>([\s\S]*)<\/span></div></td>[\s\S]*<td width[\s\S]*

    I get this:

    [\\s\\S]*[\\s\\S]*</a><a>[\\s\\S]*</div>[\\s\\S]*<div><span>([\\s\\S]*)<\\/span></div></td>[\\s\\S]*<td width[\\s\\S]*

    and it gives me an error. How do I prevent the regex function from doubling the backslashes?

    http://wordpress.org/extend/plugins/wp-o-matic/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-o-Matic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by streamsflowing
  • This topic is not resolved
  • WordPress version: 2.9.2