c++ - Finding ^@ character in unix? -


i'm writing c++ program i'm reading file info contains ^@ between lot of words. character? i'm guessing it's expression of hex value one? , regular expression match it? sorry if duplicate, tried searching on no search engine accepts these characters.

i'm new regular expressions have no idea i'm doing. this?

^.*\^@*.*$ 

^@ representation of null byte (character code 00). in regular expression, typically denoted \0 or \x00.

background details:

^@ character holding down control while typing @. traditionally, holding down control modifies character code clearing upper 3 bits (putting character 0x00–0x1f range); thus, g (0x47) turns character bel (0x07), , @ (0x40) turns nul (0x00).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -