Let perl print multiple matches starting at the same position

前端 未结 0 1588
长发绾君心
长发绾君心 2021-01-05 00:58

I want something like

print "$1\\n" while("number123" =~ /(number.*?[0-9])/g);

to print out

number1
number         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题