[英]Regex - Match two words or one word, but give preference to two words
[英]Regex to match any three words at max or no word btw 2 words
正則表達式匹配 'NATURAL' 和 'FLAVOR' 之間的任意三個單詞(最多)。
例如,從以下字符串:
我想匹配:
我會很感激幫助。 PS。 我正在研究 python。
NATURAL(?: [AZ]+){0,3} FLAVOR
NATURAL(?: [AZ]+,?){0,3} FLAVOR
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.