ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE. Software > Mouser's Zone

Extract ascii


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!!


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 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.


[0] Message Index

Go to full version