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

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -