The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Help with escaping/adding Regex expression into a php function

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #263522
    [email protected]

    I am trying to add the regex (.*[aA-zZ]){3} into a PHP function within double quotes. Could you please help me escape it so there are no errors.

    The function:

    function my_searchwp_term_pattern_whitelist( $whitelist ) {
    $my_whitelist = array(
    “Regex goes here”,

    $whitelist = array_merge( $my_whitelist, $whitelist );
    return $whitelist;

    Any help will be much appreciated. Thank you :)

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.