multiregexp
Use multiple RegExp like you had only one ! Iterate on matches or find the first match.
Quick example
; // or var MultiRegExp = require('multiregexp');const multiRegExp = /hi/gi /hello/gi; let firstMatch = multiRegExp;console;// match= "Hi", start= 0, groupCount= 0 let firstMatch = multiRegExp;console;// match= "hello", start= 3, groupCount= 0 for let match of multiRegExp console; // match= "hello", start= 3, groupCount= 0 // match= "Hi", start= 11, groupCount= 0