Cubehead Posted December 20, 2006 Share Posted December 20, 2006 Hi,I'm running into regular expressions trouble (again). I need to check if a string is composed of 6 hexadecimal characters. In v3.2.0.1 I used something like $nDummy = StringRegExp($strString, "^([:xdigit:]{6})$", 0). It worked perfectly.In v3.2.1.14 the pattern is not valid, and the @extended error tells me that the pattern is invalid at the "[" character. Can someone help me fix my pattern ? Thanks in advance.Cubehead Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 20, 2006 Moderators Share Posted December 20, 2006 Hi, I'm running into regular expressions trouble (again). I need to check if a string is composed of 6 hexadecimal characters. In v3.2.0.1 I used something like $nDummy = StringRegExp($strString, "^([:xdigit:]{6})$", 0). It worked perfectly. In v3.2.1.14 the pattern is not valid, and the @extended error tells me that the pattern is invalid at the "[" character. Can someone help me fix my pattern ? Thanks in advance. Cubehead$nDummy = StringRegExp($strString, '^([0-9A-Fa-f]{6})$', 0) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Cubehead Posted December 20, 2006 Author Share Posted December 20, 2006 $nDummy = StringRegExp($strString, '^([0-9A-Fa-f]{6})$', 0)Thanks a lot SmOke_N and D'oh ! I should have paused and look at the problem with a little bit of distance and from another angle. Oh well. Cubehead Link to comment Share on other sites More sharing options...
gruntydatsun Posted August 4, 2011 Share Posted August 4, 2011 (edited) Sorry, broke the rules here. Edited August 4, 2011 by gruntydatsun 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