Regex look back format condition

后端 未结 2 899
渐次进展
渐次进展 2021-01-25 16:43

I need help to make a regex that can match specific format.

Input:

\"fr. 2 699:- 2 fr. 599:- 3 fr. 899:- 4 fr. 3 899:- 5 fr. 1 49

相关标签:
2条回答
  • 2021-01-25 17:25

    How about this:

    Online Demo

    /(?<=fr\.\s)(\d{3})/g
    
    0 讨论(0)
  • 2021-01-25 17:42

    It seems you want to match the numbers that follow fr.

    The following regex should work:

    fr\. ([1-9]\d{2})
    

    Tested at: http://rubular.com/r/ct5WD9TlTg

    0 讨论(0)
提交回复
热议问题