0
您好我有這樣的記錄給定的字符串特定長度的字符,提取在Python正則表達式
如:
Health Insurance PortabilityNEG Ratio
Health Insurance PortabilityNEGRatio
Health Insurance PortabilityNEG NEGRatio
在這裏,我需要提取PortabilityNEG
我用正則表達式作爲
Insurance(.{25}).*?
但我不想提保險。請讓我知道我該如何寫正則表達式?
'import re; re.sub(r「(\ w +)\ s(\ w +)\ s(\ w {0,14})([\ w] +)」,「\\ 3」,「健康保險PortabilityNEGRatio」)? – Abdou