Regex function doubling backslashes making invalid expressions (1 post)

  1. streamsflowing
    Posted 3 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?


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

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