Sign in to follow this  
Followers 0
shl2003

Urgent help !! apostrophe in string regular expression

2 posts in this topic

$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

Share this post


Link to post
Share on other sites



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)

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0