SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe just an OR operator | could be enough for your problem:
|
String: foo,bar,baz
foo,bar,baz
Regex: (foo)|(baz)
(foo)|(baz)
Result: ["foo", "baz"]
["foo", "baz"]