You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would take a string and return a string with all regex-specific characters escaped so that it would match the literal string if compiled to a regex. It would be useful when you want to exactly match part of a string while partially matching other parts a string. I'm not sure how difficult this would be to add though because of the differences between JS and Erlang regex syntax.
Looking into things a bit further it seems like the Regex syntax for each platform might be similar enough in terms of matacharacter usage that this won't be a big lift. Even though the JS Regex Syntax seems to have more features if we escape common metacharacters (see the Erlang re docs) things might just work.
This would take a string and return a string with all regex-specific characters escaped so that it would match the literal string if compiled to a regex. It would be useful when you want to exactly match part of a string while partially matching other parts a string. I'm not sure how difficult this would be to add though because of the differences between JS and Erlang regex syntax.
Related:
The text was updated successfully, but these errors were encountered: