I'd say use whichever is more readable — that's "better", IMHO. I don't think there is much of a performance difference (if any), but if you really want to know, Benchmark it.
In reply to Re: better (faster) way of writing regexp
by almut
in thread better (faster) way of writing regexp
by jodaka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |