Hello
I am trying to use regular expressions in a java program. I would like the regex to identify a String of unknown length and whose charachters are only ‘C’, ‘A’, ‘G’ or ‘T’.
Thanks for your help.
Hello I am trying to use regular expressions in a java program. I would
Share
Easy, just use a character class:
Or if the entire string has to comprise of the chars CAGT for it to match: