Sign in to follow this  
Followers 0
S4y0n4r4

Has AutoIT regular expressions

6 posts in this topic

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

Share this post


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

Share this post


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.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


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.

Share this post


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.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

thanks people for the help.

It was very helpfull.

I succeed to do what i need.

Thanks again.B)

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