All about Java String.
Special characters are also supported by this API which places an affect at the mode by which a pattern is matched. Regular expressions can be changed to cat. & input string to tocats. Output will be as following:
Enter regex i.e. cat.
Enter “input string” for searching i.e. cats
Text cats are found that start at index zero & end at index four.
Match succeeds even dot is absent in input string. Match succeeds as dots are metacharacters, a character that