webpro 31 Posted March 30, 2013 Report Share Posted March 30, 2013 Can we use more than one $document text with $find regular expression so it grabs more than one regex url ?I got several different urls to add to a list. Is there a way besides making multiple lists ? Quote Link to post Share on other sites
Praney Behl 314 Posted March 30, 2013 Report Share Posted March 30, 2013 Well I would like to suggest an easier alternative instead. Try to nest the find regular expressing commands inside each other and you'll be right. Here is an example: set(#result, $find regular expression($find regular expression($find regular expression($document text, "Replace this with Regular Exprssion 1"), "Replace this with Regular Exprssion 2"), "Replace this with Regular Exprssion 3"), "Global") Hope it helps. Cheers!Praney 1 Quote Link to post Share on other sites
Lucius 7 Posted March 30, 2013 Report Share Posted March 30, 2013 why not use add list to list? add list to list(%results, $find regular expression($document text, "regexphere"), "Delete", "Global") this should grab all urls matching your reg exp. and add each one to your list.... i think this is what you're trying to do anyways. Quote Link to post Share on other sites
webpro 31 Posted March 31, 2013 Author Report Share Posted March 31, 2013 Yes this is what i do right now but i got a tricky email which has various link possibilities to click on.So i'm trying to grab all the possibilities under one list. Quote Link to post Share on other sites
webpro 31 Posted March 31, 2013 Author Report Share Posted March 31, 2013 Well I would like to suggest an easier alternative instead. Try to nest the find regular expressing commands inside each other and you'll be right. Here is an example: set(#result, $find regular expression($find regular expression($find regular expression($document text, "Replace this with Regular Exprssion 1"), "Replace this with Regular Exprssion 2"), "Replace this with Regular Exprssion 3"), "Global") Hope it helps. Cheers!PraneyThanks MATE ! wILL TRY THIS FOR SURE 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.