Answers for "keep certain pattern regex php"

PHP
2

php regex string contains coringa

fnmatch("*ti*o*", 'Tiago');//false
fnmatch("*ti*o*", 'Tiago', FNM_CASEFOLD);//true
Posted by: Guest on February-15-2022
1

find substring regx php

if (preg_match("/\bweb\b/i", "PHP is the web scripting language of choice.")) {
    echo "A match was found.";
} else {
    echo "A match was not found.";
}
Posted by: Guest on May-26-2020

Browse Popular Code Answers by Language