public void test() throws InterruptedException {
byte[] reg = "l.".getBytes();
byte[] str = "hello,lo".getBytes();
Regex p = new Regex(reg,0,reg.length,Option.DEFAULT,ASCIIEncoding.INSTANCE,Syntax.DEFAULT);
int result = p.matcher(str, 0, str.length).search(3, 0, Option.NONE);
if(result != 3) {
Config.log.println("FAIL: /l./ 'hello,lo' - with reverse, 3,0");
nfail++;
}
}