简体   繁体   中英

RegEx expression for Multiple Words

Need a regular expression for finding the multiple words as described in below example: Annual Program Code (APC) The regular expression should be able to find the above if the following is searched

  1. Annual
  2. Program Code
  3. Code
  4. APC

这应该有效:

let regex=/(Annual|Program Code|Code|APC)/g

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM