Malcolmf Posted February 1, 2017 Share Posted February 1, 2017 Hello and help, Does anyone know how I can remove a 'Full width comma' from a string? I am translating a Chinese file for upload into our system. I have to remove some characters before the upload and have been using the code below. However, commas are still appearing. I used Notepad++ in Hex mode and discovered that the commas where not commas but 'full width commas'. See Hex dump below. The first comma after the number 27 is removed successfully, but the second comma after GREEN is not (It appears visually as a comma in the input file). Thanks Hex display 32 37 2c 45 41 53 54 20 47 52 45 45 4e ef bc 8c 27,EAST GREEN, My code local $remove = "[\,-]" $str = StringRegExpReplace($str, $remove, "") Link to comment Share on other sites More sharing options...
Danyfirex Posted February 1, 2017 Share Posted February 1, 2017 Hello. You can use \x{FF0C} Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Malcolmf Posted February 1, 2017 Author Share Posted February 1, 2017 FANTASTIC ! Works perfectly Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now