I'm dealing with a really long regex pattern to match on and it's so long I'm going to have to split it up into several different strings. My question is: How can I avoid the escape characters in JavaScript to instantiate a new RegExp to create a testable pattern?
In C# it's pretty simple: Just suffice the string with the @ symbol and the compiler takes care of it. JavaScript is totally different and I'm not certain what the equivalent statement is.
/\w+/. Then, you'd need to call the.sourceproperty to access the pattern itself for concatenation (/\w+/.source + /\s+/.source)./.../are not escaping characters, these are regex delimiters.(\s?\s?\s?\s?)==(\s{0,4});(\s{0,4})?==(\s{0,4})etc