Regex look back format condition

后端 未结 2 924
渐次进展
渐次进展 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: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

提交回复
热议问题