WordPress.org

Ready to get started?Download WordPress

Forums

Search Regex
Checkbox options seem to be quirky in WordPress (2 posts)

  1. mharpen
    Member
    Posted 2 years ago #

    I can't get the case-insensitive option to work. For one, the 3 extra checkboxes do not show until I check the "Regex" box AND also click Search. Why do I need to click Search for the 3 other options to appear? And do I need to check "Regex" if I just want to check "Case-insensitive". It seems so, since the "Case-insensitive" option doesn't appear unless "Regex" is checked. Then when I have the Regex and Case-insensitive options both showing and checked, and I click Search, it returns the error: "Invalid regular expression: Delimiter must not be alphanumeric or backslash". I just have the word "cheeze" in the search box and nothing in the replace box. Do I need to surround "cheeze" with something? Anyone, please? TIA.

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

  2. mharpen
    Member
    Posted 2 years ago #

    For anyone else who may be asking the same question, I found how to do case-insensitive searches in Regex. (But I still can't get the case-insensitive checkbox option to work, so I'm not using it).

    To do case-insensitive searches, only check the "Regex" option, and enter your search like this:

    'cheeze'i

    I'm using single-quotes as the delimiter, you can use other non-alphanumeric chars too. This will find "cheeze" with any case. The "i" at the end is the regex flag for case-insensitive. You can google regex delimiters, or regex case-insensitive for more info.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic