Can PCRE regex match a null character?

Posted by Keng on Stack Overflow See other posts from Stack Overflow or by Keng
Published on 2010-04-05T20:39:20Z Indexed on 2010/04/05 20:43 UTC
Read the original article Hit count: 557

Filed under:
|
|

I have a text source with nulls in it and I need to pull them out along with my regex pattern. Can regex even match a null character?

I only realized I had them when my pattern refused to match and when I pasted it into Notepad++ it showed all the null characters.

© Stack Overflow or respective owner

Related posts about regex

Related posts about pcre