Overall meaning of this expression is to print rest of the string after the string "http://www.".
Pattern p = Pattern.compile(regex):-Creating a pattern object and compiles the given regular expression into a pattern.
Matcher m = p.matcher(url):-Creates a matcher for matching the given input against pattern p.
Output of the program
|The url of the roseindia is http://www.roseindia.net.Rohini
Name of the company is : roseindia.net.
Ask Questions? Discuss: Retrieving String after given Regular expression
Post your Comment
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.