Looking for some gimmick that would hide all characters from a field except for those within a given Unicode range

Pekka's Avatar

Pekka

24 Oct, 2018 11:06 AM

I'm pretty illiterate in coding, so please be gentle. I'm looking for a piece of code that would hide all characters from a field except for those within a given Unicode range. E.g., suppose the field has this input: abc 15 kg and 47 mm. If I decide on the Unicode range as from U+0030 to U+0039 (which is only ten digits), the output would be 1547, because the Latin letters and the space are outside of my Unicode range. Can it be done? I'll appreciate any help.

Comments are closed, but you can start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac