Java Regex – Characters Java Regex – Examples Matching Characters ”; Previous Next Following are various examples of matching characters using regular expression in java. Sr.No Construct & Matches 1 x The character x 2 \ The backslash character 3