[string match] and [regexp] stop parsing on null char
Closed / Invalid963251ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-30 20:07:28
[string match] and [regexp] fail to match beyond null chars in the input. <RockShox> maybe ? doenst like \x00 ? <suchenwi> 289 % string match BM???* BM\x0012345 <suchenwi> 0 <suchenwi> Yes, indeed - comparison seems to stop at the \x00 byte. <suchenwi> Since 8.0 yes, \x00 is a valid character as part of a string. <suchenwi> So you might have found a bug. <suchenwi> Incidentally, here too: 1685 % regexp ^BM... BM\x0012345 <suchenwi> 0 <miguel> this really sound like a bug ... report it at sf
hobbsplain2004-05-31 03:37:32
Logged In: YES user_id=72656 Never, NEVER use \x because it consumes ALL valid hex chars, but only uses the last *2* for the value (stupid, but documented). Instead use \u. (temp) 49 % string match BM???** BM\u000012345 1
Log in (anonymous is fine) to add a comment.