Mayor Posted November 29, 2006 Posted November 29, 2006 Hello.... I am porting some scripts over to v3.2.1.13 (beta). One of my scripts uses the "\#" feature of the old regular expression engine to find the current position of the matched string. I was wondering if there is support for this feature in the new engine. I looked at the beta doc and did not see anything like it listed. There are probably workarounds but it would be a big help if this feature was useable in the new regular expression engine. Anyone have any clues? Thanks for the help.-M
Moderators SmOke_N Posted November 30, 2006 Moderators Posted November 30, 2006 (edited) Hello.... I am porting some scripts over to v3.2.1.13 (beta). One of my scripts uses the "\#" feature of the old regular expression engine to find the current position of the matched string. I was wondering if there is support for this feature in the new engine. I looked at the beta doc and did not see anything like it listed. There are probably workarounds but it would be a big help if this feature was useable in the new regular expression engine. Anyone have any clues? Thanks for the help.-MAlways one way to find out with a simple code example on your part. The answer is \# will look for #.This may help you.http://perldoc.perl.org/perlre.html#Regular-ExpressionsIt's what I use for a reference with the new regexp. Edited November 30, 2006 by SmOke_N 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.
Mayor Posted November 30, 2006 Author Posted November 30, 2006 Always one way to find out with a simple code example on your part. The answer is \# will look for #.This may help you.http://perldoc.perl.org/perlre.html#Regular-ExpressionsIt's what I use for a reference with the new regexp.I know \# will now look for a literal pound sign.... just wondering if the position function was still there, just not documented, or maybe I had passed it over. Looking through that reference document, it doesnt look like it is supported. I have already implemented a fix using stringistr() but it would have been nice if the position stuff still worked. Oh well. Thanks anyway.
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