Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样的字符串:
new_account_notification updated_account_notification reactivated_account_notification updated_billing_info_notification
我想像这样匹配这些字符串:
account
reactivated_account
billing_info
请建议一个正则表达式来满足这些条件。
试试这个模式:
(?<!reactivated_)account|billing_info
(?<!...)是一个消极的后视(希望你的正则表达式支持它)
(?<!...)
|代表或
|