Regex reuse a pattern to capture multiple groups?

前端 未结 2 1496
南方客
南方客 2020-11-29 14:00

I would like to match some pattern multiple times, exactly like described here.

^(somelongpattern[0-9])([,; ]+(?1))*$

This will match for e

2条回答
  •  天命终不由人
    2020-11-29 14:36

    In reviewing the Java documentation they still do not follow the PCRE guidelines for subroutines. Basically Java Regex does not support subroutines.

    see also Java Regex Manual

提交回复
热议问题