\\ $DigitalSignature have full name value passed
$SignatureMatch = '/' . strtolower( $NameFirst . ' ' . $NameLast ) . '$/';
if( true == preg_match( $SignatureMatch, strtolower( $DigitalSignature ) ) )
{
$boolIsValid = true;
}
I am having this code for exact matching first name and last name match with digital signature. But this gives error reported me in error log on production(live).
preg_match(): Unknown modifier 'b'
I am unable to reproduce this error. How can I get this error firstly. And how to resolve this error for exact matching.
I have seen many questions on SO but not getting when will get this error. And how do I resolve that. Some of questions out of many I have saw are -
- Warning: preg_match() [function.preg-match]: Unknown modifier
- Unknown modifier in preg_match() statement
- Warning: preg_match() [function.preg-match]: Unknown modifier
- Unknown modifier 'l' error
- Unknown modifier 'g' PHP regex error
- Unknown modifier '/' in ...? what is it?
- preg_match() Unknown modifier '[' help
- Warning: preg_match() [function.preg-match]: Unknown modifier 'v'
- PHP Preg_match match exact word
- Unknown modifier 'v' when using preg_match() expression in regex
- preg_match(); - Unknown modifier '+'
- preg_match error Unknown modifier '{'
- Unknown modifier '(' when using preg_match() with a REGEX expression