S4y0n4r4 Posted November 21, 2005 Posted November 21, 2005 HiHas 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
Francis Lennert (France) Posted November 21, 2005 Posted November 21, 2005 HiHas 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?ThanksThe betas version of AutoIT have two new commands :1. StringRegExp2. StringRegExpReplaceYou can download them here :Download BetasHTHFrancis
BigDod Posted November 21, 2005 Posted November 21, 2005 HiHas 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?ThanksIf 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
S4y0n4r4 Posted November 21, 2005 Author Posted November 21, 2005 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 stringab{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.
BigDod Posted November 21, 2005 Posted November 21, 2005 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
S4y0n4r4 Posted November 23, 2005 Author Posted November 23, 2005 thanks people for the help. It was very helpfull. I succeed to do what i need. Thanks again.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now