每当我尝试匹配正则表达式模式时
PREREQasdasdasdasdsadNot+es3adadaK2+0000000+043YEARA_
和
^([a-zA-Z0-9]*|(([a-zA-Z0-9])+(([_]*|[-]|[+])[a-zA-Z0-9]+)*))$
它被绞死了
这些是少数可能有帮助的案例
• 阳性病例
asdsadas+asd-asdasdad-asdad+asdasd
UPGRADE+asd-asdasdasdvf-asd
UPGRADE+asd-adsasda__LS-TasdL+asdasdwd
UPGRADE+asd-asdasd__LS-TRI+A+L+asdasdwd
UPG-R-ADE+asd-asd__LS-TRI+A+L+asdasdwd
PREREQ+asdasdasda-Traveler-asd3YEAR+FK20000000043YEAR-A
PREREQ+asdasdd-T_raveler-asdasds3YEAR+FK20000000043YEAR-A
UP_G-R+ADE+asd-ESS__________E+N+T-I_A_LS-TRI+A+L+asdasdwd
PREREQ+asdad-Traveler-asdasd3YEAR+FK200__0-0+0_00043YEAR-A
PREREQasdasdasdTravelerasda3YEARFK20000000043YEARA
UP_G-R+ADE+MTG-ESSENTIA__LS-TRI+A+L+asdasdwd
PREREQasdasdasdasdvfTravelerasdt+esasd2K2+0000000+043YEARA
负面案例
UPG--RADE+asdasd-asdasdasd__LS-TRI+A+L+asdasdwd
UPG-R-ADE_+_asda-asdasdasd__LS-TRI+A+L+asdasdwd
UPG-R-ADE+_asd-asdasdad__LS-TRI+A+L+asdasdwd
UPG-R-ADE+_asd-ESSENTIA__LS-TRI+A+L+asdasdwd
PREREQ+asdasdasdasdvf-asdr-asd++3YEAR+FK20000000043YEAR-A
PREREQ_+-asdasdasdasdvf-asdr-Notes3YEAR+-+FK20000000043YEAR-A
_PREREQ+asdasdasdasdvf-asdr-asd3asdR+FK200__0-0+0_00043YEAR-A
系统挂起(NEG 案例)
PREREQ+asdasdasdasdvf-asd-asd3YEAR+-+FK20000000043asdds-A
PREREQasdasdasdasdvfasdrNot+es3YEARFK2+0000000+043asdasd_