webpro 31 Posted March 2, 2014 Report Share Posted March 2, 2014 This works fine to grab the credit number in my editpad (?<=You have <font color=#ff0000>)\d+ but when i insert it into UB, it doesn't grab the number ? set(#credits, $find regular expression($document text, "(?<=<font color=#ff0000>)\\d+"), "Global") Here's the html to scrape You have <font color=#ff0000>1192</font> credits.</b> <br> Any ideas why ?Thanks Quote Link to post Share on other sites
HelloInsomnia 1103 Posted March 2, 2014 Report Share Posted March 2, 2014 $document text is quoting the color="#ff0000" so add quotes around it if you are going to use that function. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted March 2, 2014 Report Share Posted March 2, 2014 Also, make sure you are using .net regex as there are many types. I test with a .net tester like this one http://regexhero.net/tester/ Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.