All about Java String.
Support of the regular expression is also present in java.lang.String via different methods which mimic the java.util.regex.Pattern behavior. From APIs, their key excerpts are shown below for convenience. Public Boolean matches (String regex):
Show whether string will be matching with the regular expression or not. This methodís invocation of the form str.matches produces similar output that was produced by expression Pattern.matches. Public string split (String