Jump to content
Sign in to follow this  
shl2003

Urgent help !! apostrophe in string regular expression

Recommended Posts

shl2003

$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
iamtheky

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.