Jump to content

Recommended Posts

Posted

$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

Posted

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)

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

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
×
×
  • Create New...