java - Form regular expression from byte array? -
How do I create a regular expression from a byte array?
For example, I have the array A:
byte [] a = {'a', 't'}; I would like to use a regex pattern from A to A
[ag] t I How can I use Maitre?
byte [] a = {'A', 't'}; String aStr = new string (A); String Reggae = "[AG] T"; If (aStr.matches (regex)) {// Match} else {// is not a match} You can try to do something like that.
Comments
Post a Comment