shl2003 Posted June 11, 2011 Share Posted June 11, 2011 $array = StringRegExp("'table'",''.+'', 0)why is there an error?how to deal with the apostrophe in string regular expression? seems like autoit returns error when there's an apostrophe in string regular expression Link to comment Share on other sites More sharing options...
iamtheky Posted June 11, 2011 Share Posted June 11, 2011 you cant double up your single quotes like that, and stringregexp with a flag of 0 does not return an array. #include <array.au3> $array = StringRegExp("'table'","'.+'", 2) _arraydisplay ($array) ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) 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