Luigi Posted August 27, 2014 Share Posted August 27, 2014 (edited) Hi, someone can help me to split it? Local $string = "Bela20Vista20International20Eyes" I want split every '' plus two characters... I expect something like this: Local $arr[7] = [ "Bela", "20", "Vista", "20", "International", "20", "Eyes"] Thinking the best way is a Regular Expression... I do not undeerstand nothing about Regular Expression... Or have another way to do? Note: after '' always have two characters... Best regards, Luigi Edited October 19, 2019 by Luigi Visit my repository Link to comment Share on other sites More sharing options...
Solution mikell Posted August 27, 2014 Solution Share Posted August 27, 2014 ? #Include <Array.au3> Local $string = "Bela\20Vista\20International\20Eyes" $res = StringRegExp($string, '((?:\w+)|(?:\\..))', 3) _ArrayDisplay($res) Luigi 1 Link to comment Share on other sites More sharing options...
Luigi Posted August 27, 2014 Author Share Posted August 27, 2014 Perfect! I just add: Local $regex = "((?:\w+)|(?:\\[a-fA-F0-9]{2}))" Thank you mikell! Visit my repository 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