- AuthorPosts
- September 20, 2019 at 1:36 pm #26187harryrayParticipant
Is there any way to take out non printable (non ascii) characters from a file, if there isn’t is there any chance of including this option? By this I mean to leave only A-z and 0-9 and the option to include or exclude certain characters….I’ve been using an old programme called bintext up till now.
Thanks.
September 21, 2019 at 6:02 am #26190DavidParticipantAs I known, in Emeditor, you can search ”
[[:cntrl:]]
”
in Replace dialog by using Regular Expression. Then replace with “null”(empty) or blank. All non printable will be deleted or changed to space. [[:cntrl:]] is posix character which means non-printable character.September 21, 2019 at 7:13 am #26192harryrayParticipantThanks, that works…but what I’m after is something that will give me the choice of the characters to strip out as well as the non printable characters similar to the bintext programme.
In the meantime do you know of the regex expression that will strip out the non printable characters and just leave me with A-Z and 0-9 (alpha numeric characters)?September 21, 2019 at 7:15 am #26193harryrayParticipantUnfortunately there is only a 64 entries limit..I want quite a lot more than that. I also need a way to back up all the entries to a text file.
September 21, 2019 at 7:18 am #26195harryrayParticipantPls ignore last comment..it was meant for my other post.
September 21, 2019 at 4:42 pm #26196DavidParticipantSearch “[[:alnum:]]” which means alpha numeric characters and then Extract to a new file.
September 24, 2019 at 1:48 pm #26204Mr KTParticipantHi harryray,
This matches all ASCII characters (from space to tilde – not my solution)
[ -~]By negating this, it now matches all NON-ASCII characters
[^ -~]>>but what I’m after is something that will give me the choice of the characters to strip out as well as the non printable characters
You should just be able to use alternation to add all the additional characters to strip out
e.g. To strip out all NON-ASCII characters and all vowels:
[^ -~]|[aeiou] - AuthorPosts
- You must be logged in to reply to this topic.