We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

General Discussions

Discuss any topics that are not product-specific here.

Extract web site from a string of Characters

8 - Asteroid

I am trying to extract the web site from string charaters like this one. I just need the www.unlcetimsfoodtruck.com 


.  /biz_redir?url=http%3A%2F%2Fwww.uncletimsfoodtruck.com&cachebuster=1661896748&website_link_type=website&src_bizid=_3tyFt-G2ppSVIcRS86PCA&s=39567495988d1cd59560a14cf9607bb632eb94197fc1968b9d85565929d2880a



I have several like this and they are not all the same. 


Is there a way to extract everything starting at www. and ending at .com

5 - Atom

Create an ArrayList in Java and compile the regular expression using Pattern. Match the given string with the regular expression. Find the substring from the first index of the match result to the last index of the match result and add this substring to the list. See an example Why you need motorcycle- TPMS here.