supergg02 Posted April 20, 2005 Share Posted April 20, 2005 (edited) Hi!I'm trying to parse html page with our strings autoit functions specially with RegExp, but i need help to understand some think about patterns:Exemple this is the texte to parse$text="history : 1 bids"or you can also have$text="history : 24 bids"my goal is to catch the number of bids (ie 1 or 24 in our exemples)i used $pattern="history : (\d)+ bids"but it works only for one digital bids.the pb is that number of bids may be 1 or more digital ! if you have idea, please help here is my code if you want test------------------------------------#include <Array.au3>$stxt=InputBox("The text", "What is The text ?","") $pattern=InputBox("Pattern ?", "What is The text Your Pattern ?","") $atxt=StringRegExp ( $stxt,$pattern , 2 )_ArrayDisplay ( $atxt, $pattern ) Edited April 20, 2005 by supergg02 Link to comment Share on other sites More sharing options...
Fur Posted April 20, 2005 Share Posted April 20, 2005 (\d+) not (\d)+ Link to comment Share on other sites More sharing options...
supergg02 Posted April 20, 2005 Author Share Posted April 20, 2005 (\d+) not (\d)+<{POST_SNAPBACK}>thinks but it also not work Link to comment Share on other sites More sharing options...
dok_do Posted April 20, 2005 Share Posted April 20, 2005 thinks but it also not work<{POST_SNAPBACK}>pattern ---------------> history : (\d+) bids Link to comment Share on other sites More sharing options...
Nutster Posted May 2, 2005 Share Posted May 2, 2005 There has been a problem with repeating groups that has now been fixed. Please try again with the next beta. 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...
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