oMBRa Posted November 7, 2008 Posted November 7, 2008 I have this: <td align="right" valign="top" class="rankingHeader">Random:</td> <td align="middle" valign="top" class="rankingRow">0</td> <td align="middle" valign="top" class="rankingRow">5</td> <td align="middle" valign="top" class="rankingRow">0.00 %</td> how to get ''0'' and ''5'' with StringRegExp??
dbzfanatic Posted November 7, 2008 Posted November 7, 2008 Not sure about RegExp but you could get the source and do a StringBetween() or StringInStr(). You should also try out the tester made by szhlopp. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
oMBRa Posted November 7, 2008 Author Posted November 7, 2008 nevermind I resolved right this: $PosR = StringInStr($Source, 'Random:') $PosR = StringRegExp($Source, '"rankingRow">(.*?)</(?i)td>', 3, $PosR) MsgBox(0, '', $PosR[0] & @LF & $PosR[1])
zerobazar Posted November 7, 2008 Posted November 7, 2008 Or, depending how is formated your $source (need to have each line terminated by linefeed and/or carriage return), this : $PosR = StringRegExp($Source, ".*>(\d)<.*", 3) MsgBox(0, '', $PosR[0] & @LF & $PosR[1]) should be sufficient. Best Regards.
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