我正在为多行字符串模式创建正则表达式,但它不起作用。这是我的输入模式。
FXP/R,U
1.NWAMNKPA/UGONMA D 2.NWAMNKPA/AMAJINDI O
3.NWAMNKPA/AMAJINDI NA 4.NWAMNKPA/ADAUGOAMAJI C
5.NWAMNKPA/CHINAZAEKPERE N
正则表达式:
(FXP\S{3,20})|(\r\s{3}.\S+(.+))
但这不是这条线:
3.NWAMNKPA/AMAJINDI NA 4.NWAMNKPA/ADAUGOAMAJI C
只需要这两个:
1.NWAMNKPA/UGONMA D 2.NWAMNKPA/AMAJINDI O
5.NWAMNKPA/CHINAZAEKPERE N
所需的o / p: -
- NWAMNKPA/UGONMA D
- NWAMNKPA/AMAJINDI O
- NWAMNKPA/AMAJINDI NA
- NWAMNKPA/ADAUGOAMAJI C
- NWAMNKPA/CHINAZAEKPERE N