Hey everyone. I've been struggling with this for a little while now and I can't quite figure it out. I've created a REGEX that will replace everything but the domain in a string.
For example, "http://www.cfcoding.com/post.cfm" would be come "cfcoding.com"
Here is what I have:
strLine.replaceAll("^[a-zA-Z0-9\-]+\.[a-zA-Z]{2,3}", "");
The problem is the 2 illegal escape characters, but this seems to work find in a REGEX tester. :-\