mdes Posted April 9, 2005 Share Posted April 9, 2005 (edited) On lines likebalblabla = 84.99.34.3StringRegExp($Line, ".*(\d+\.\d+\.\d+\.\d+)", 1)is returning "4.99.34.3"StringRegExp($Line, ".*( \d+\.\d+\.\d+\.\d+)", 1)is returning " 84.99.34.3"StringRegExp($Line, ".*(\d*\.\d+\.\d+\.\d+)", 1)is returning ".99.34.3" Strange, isn't it! Is it a bug Edited April 9, 2005 by mdes Gestion des congés, RTT, vacances scolaires, autres absences sur Pocket PC : CongésRFV Link to comment Share on other sites More sharing options...
Ejoc Posted April 9, 2005 Share Posted April 9, 2005 I thought I read in the bug section that regexp is currently broken, check there. Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
Nutster Posted April 20, 2005 Share Posted April 20, 2005 I will check this one out as well, then. Thanks for the feedback. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Nutster Posted May 2, 2005 Share Posted May 2, 2005 The behaviour I got is what is shown above and is the correct behaviour for the patterns specified.The key here is that .* collects as many characters as possible, that still allows the following pattern to work. The choose smaller selections, put a question mark (?) after the splat (*). David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Fur Posted May 2, 2005 Share Posted May 2, 2005 When I've tried this, it failed for me as well. Specifically if you do something like xyz.*(abc) the .* is too greedy and always eats everything until the eol. Link to comment Share on other sites More sharing options...
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