The piece of code qr/$regex/ depends on Perl's implementation of regular expressions and is therefore not directly translatable to Java. It may be translatable if $regex only contains a subset of Perl's regex features, but your post does not specify that.
In reply to Re^2: From Perl to Java
by Anonymous Monk
in thread Re: From Perl to Java
by newmrd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |