之前一直觉得正则表达式非常困难, 但是它带来的字符串判断的快捷又是可以省略非常多的if else能够带来效率的. 于是我找到了下面的一篇文章, 只要多练习里面给的正则语法, 就能够慢慢上手
https://blog.csdn.net/l1028386804/article/details/116778918?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169648867816800182183758%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=169648867816800182183758&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-2-116778918-null-null.142^v94^chatsearchT3_1&utm_term=%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F&spm=1018.2226.3001.4187