Jump to content

Urgent help !! apostrophe in string regular expression


Recommended Posts

$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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...