Remove all unicode characters from filename

A swapping-ground for Regular Expression syntax

Remove all unicode characters from filename

Postby RenaMercer » Mon Oct 19, 2020 8:19 am

Hi guys is there a way to remove all unicode characters (specifically Chinese)? I tried Remove (5) High but it doesnt work.
RenaMercer
 
Posts: 5
Joined: Fri Sep 25, 2020 4:59 am

Re: Remove all unicode characters from filename

Postby Admin » Mon Oct 19, 2020 11:05 am

Match: [^\x00-\x7F]+/g
Replace:

Enable v2

/g will enable multiple matches
[ The g modifier is used to perform a global match (find all matches rather than stopping after the first match) ]
Admin
Site Admin
 
Posts: 2085
Joined: Tue Mar 08, 2005 8:39 pm

Re: Remove all unicode characters from filename

Postby RenaMercer » Mon Oct 19, 2020 12:07 pm

Awesome! Exactly what I needed!
RenaMercer
 
Posts: 5
Joined: Fri Sep 25, 2020 4:59 am


Return to Regular Expressions