Iczer Posted September 25, 2021 Share Posted September 25, 2021 Is there a way to make regexp v8.x pattern so word boundary is recognized even if spaces replaced by underscore in the subject string? Is it possible in 10.* version? How? Link to comment Share on other sites More sharing options...
mikell Posted September 25, 2021 Share Posted September 25, 2021 No way. \w matches underscore and will always do. You must build your own expression, example : #Include <Array.au3> $s = "abc 123 def_456_ghi 789" $res = StringRegExp($s, '[[:alnum:]]+', 3) _ArrayDisplay($res) 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