• Resolved colinsp

    (@colinsp)


    I have the following regex which works in stand alone mode

    \[dw-page data=”[a-zA-Z0-9 _;&:]*”\]$

    I have 234 occurrences of data that fulfills this criteria in the posts table but the plugin says there are 0 occurrences!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Godley

    (@johnny5)

    Can you give an example of some text that this is supposed to match? What is standalone mode?

    Thread Starter colinsp

    (@colinsp)

    By standalone I mean in a regex tester.

    I have managed to resolve it by adding additional escape \ so in the end it became

    \[dw-page data=\”[a-zA-Z0-9 _;&:]*\”\]$

    (They aren’t smart quotes in the regex just displayed as such here.)

    So ultimately resolved.

    Plugin Author John Godley

    (@johnny5)

    The quotes shouldn’t need to be escaped. If I perform the same search it finds the text that matches.

    Thread Starter colinsp

    (@colinsp)

    Without escaping the quotes, which as you say should not be necessary, it did no changes for me, just said no records found.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Doesn’t work?’ is closed to new replies.