Jump to content
UBot Underground

How To Get All Matched Strings With Regular Expression?


Recommended Posts

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.  

Link to post
Share on other sites

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))
  • Like 1
Link to post
Share on other sites

 

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. 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...