How to match a single backslash in a javascript regular expression string

Don't think too much, js can't match a single backslash, it can't match 100%. Because the backslash and the following characters have been combined and escaped, there is no concept of backslash anymore

 

Solution: Write a method interface in the background or handle it when the background returns to the foreground

Guess you like

Origin blog.csdn.net/liuhao9999/article/details/111371973