Matching two overlapping patterns with Perl

前端 未结 2 1948
夕颜
夕颜 2021-01-05 08:15

I hope that my question has not already been posed by someone else, since I tried to look almost everywhere in the site but I couldn\'t manage to find an answer.

My

2条回答
  •  一生所求
    2021-01-05 08:19

    You have to use looakahead and count the number of matches

    (?=beta|alpha)
    

    Not tested in perl but should work

    works here

提交回复
热议问题