regularexpression-reverse-pattern-search
August 30, 2018
A RegExp reverse pattern search in Javascript:
My colleague asked me for a solution on manipulating String, simply replacing all backslash with empty string, but only match backslash followed by anything but a backslash ‘\’. This is definitely a reverse pattern search case.
Solution
1 |
|
查看评论