Jump to content

Has AutoIT regular expressions


Recommended Posts

B) Hi

Has AutoIT regular expressions something like in perl has this kind of expressions (and in unix shells)

I has read a help again to find something like that.

For example i want to check one screen with a function WinExists, but i don't need to check the whole title of the screen and the whole text.Can i put somethink like this "* some_word_to_check *" and the function to do not check for all word in the title and in the text, but only this who i want?Has autoIT this options?

Thanks

Link to post
Share on other sites

B) Hi

Has AutoIT regular expressions something like in perl has this kind of expressions (and in unix shells)

I has read a help again to find something like that.

For example i want to check one screen with a function WinExists, but i don't need to check the whole title of the screen and the whole text.Can i put somethink like this "* some_word_to_check *" and the function to do not check for all word in the title and in the text, but only this who i want?Has autoIT this options?

Thanks

The betas version of AutoIT have two new commands :

1. StringRegExp

2. StringRegExpReplace

You can download them here :

Download Betas

HTH

Francis

Link to post
Share on other sites

B) Hi

Has AutoIT regular expressions something like in perl has this kind of expressions (and in unix shells)

I has read a help again to find something like that.

For example i want to check one screen with a function WinExists, but i don't need to check the whole title of the screen and the whole text.Can i put somethink like this "* some_word_to_check *" and the function to do not check for all word in the title and in the text, but only this who i want?Has autoIT this options?

Thanks

If I understand correctly what you require is WinTitleMatchMode. You will find it under opt in the help files.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to post
Share on other sites

To be clear i want give some examples from Perl's regular expressions:

^abc - Perl will give me abc at the beginning of the string

abc$ - Perl will give me abc at the end of the string

ab{2,4}c - an a followed by two, three or four b's followed by a c

ab*c - an a followed by any number (zero or more) of b's followed by a c

ab+c - an a followed by one or more b's followed by a c

ab?c - an a followed by an optional b followed by a c; that is, either abc or ac

a.c - an a followed by any single character (not newline) followed by a c

a\.c - a.c exactly

[abc] - any one of a, b and c

I need something like this.

Link to post
Share on other sites

To be clear i want give some examples from Perl's regular expressions:

^abc - Perl will give me abc at the beginning of the string

abc$ - Perl will give me abc at the end of the string

ab{2,4}c - an a followed by two, three or four b's followed by a c

ab*c - an a followed by any number (zero or more) of b's followed by a c

ab+c - an a followed by one or more b's followed by a c

ab?c - an a followed by an optional b followed by a c; that is, either abc or ac

a.c - an a followed by any single character (not newline) followed by a c

a\.c - a.c exactly

[abc] - any one of a, b and c

I need something like this.

StringRegExp is what you want.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...