For the URL http://questions/ask/stackoverflow.xhtml, the requirement is obtain stackoverflow.
What is the pattern used to obtain this page name?
The substring can be used but I read that the performance for pattern Matcher would be better.
For the URL http://questions/ask/stackoverflow.xhtml , the requirement is obtain stackoverflow. What is the pattern
Share
For that particular URL you can use:
For the more useful (in terms of regex not in performance) Pattern based solution consider this: