DonationCoder.com Software > Mouser's Zone
Extract ascii
(1/1)
harryray:
Is there a search string so that I can use regexcaptor to extract just ascii characters from a file?...I currently use a couple of programmes called bintext and extracttext to do this.
I have absolutely no idea how to write a regex!!
Thanks
Ath:
Well, the simplest regex to extract textual content as 'words' from (binary) files would be: \w+
If you only want alphanumeric characters (no accent- or punctuation- characters), that could be something like [a-zA-Z0-9]+
A great site to learn about and try out Regular Expressions has been https://regex101.com for me, with an extended explanation of what's going on with the regex you're trying, and an index of all expression elements available.
Navigation
[0] Message Index
Go to full version