Java String Boundary Matchers
by, 04-26-2012 at 07:51 PM (596 Views)
Till now we were just interested in this thing that if match is present at a location in some specified string. Care hs never been taken regarding the location of match in the string, where it actually took place.
Pattern matches could be made much more precise just by making information specific along with boundary matches. Let us say, e.g, may be one of you are more keen to find out a specific word but only when it is present at start or end of line. May be you desire to be aware of the fact whether matching is being done at word boundary or at previous match’s end.