Hi, Thanks for your reply.
I'm using regex on SymbolLists instead of Strings, because I'm working with large sequences stored in the memory. I think SymbolLists are more memory efficient than Strings. But my problem is solved now. I removed ambiguous symbols from the regex pattern. Regards, Jesse -----Original Message----- From: Sylvain Subject: [Biojava-l] [1.4pre1] BioJava's-Regex with ambigous symbols Hi, Have a look at the MotifTools class. You'll find the createRegex method that creates a regex with a degenerate sequence using a SymbolList that have the sequence with degenerate letters. It works great. The returned String can then be used with the usual Pattern/Matcher classes in Java. Hope this helps Best regards Sylvain _______________________________________________ Biojava-l mailing list - Biojava-l@biojava.org http://biojava.org/mailman/listinfo/biojava-l