Guest User

Untitled

a guest
May 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. export default class JSUtils {
  2. regExpWithEscape (string) {
  3. return new RegExp(string.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'))
  4. }
  5. }
Add Comment
Please, Sign In to add comment