iamddr 12 Posted December 16, 2015 Report Share Posted December 16, 2015 Newbie here, Just wonder how to get all matched strings or total matched strings numbers with regular expression? Example:Ex.html contains lots of urls, I need to find specific urls which contain /imags/random-numbers/anyname.jpg and get total number of mathed urls. Quote Link to post Share on other sites
pash 504 Posted December 16, 2015 Report Share Posted December 16, 2015 get all matched set(#url,"facebook.com/ twitter.com/ google.com/ youtube.com/ wordpress.org/ adobe.com/ blogspot.com/ wikipedia.org/ linkedin.com/ wordpress.com/ yahoo.com/ amazon.com/ flickr.com/ pinterest.com/","Global") add list to list(%url,$find regular expression(#url,".*?"),"Delete","Global")get total number of mathed alert($list total(%url)) 1 Quote Link to post Share on other sites
iamddr 12 Posted December 16, 2015 Author Report Share Posted December 16, 2015 get all matched set(#url,"facebook.com/ twitter.com/ google.com/ youtube.com/ wordpress.org/ adobe.com/ blogspot.com/ wikipedia.org/ linkedin.com/ wordpress.com/ yahoo.com/ amazon.com/ flickr.com/ pinterest.com/","Global") add list to list(%url,$find regular expression(#url,".*?"),"Delete","Global")get total number of mathed alert($list total(%url))Thank you, works like a charm. 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.