Category
Combines several regular expressions into a new one that matches any of them.
Time complexity: O(n)
Space complexity: O(1)
Rest
Regular expressions to get the union of
A new regular expression
Regular expressions
regExpUnion(/[a-z]/, /\d/); // /([a-z])|(\d)/ Copy
regExpUnion(/[a-z]/, /\d/); // /([a-z])|(\d)/
Combines several regular expressions into a new one that matches any of them.
Time complexity: O(n)
Space complexity: O(1)