The following should be matched: AAA123 ABCDEFGH123 XXXX123 can I do: ".*123" ? 11 Answers 11 Tags: javaregex