删除S 之后的所有字符用:s.*$
删除S 之前的所有字符用:^([^s]*)s
如果是其他字符就把s替换为其他字符
参考网址:https://zhidao.baidu.com/question/328466757201619245.html
转载于:https://blog.51cto.com/bbhome/1930180
删除S 之后的所有字符用:s.*$
删除S 之前的所有字符用:^([^s]*)s
如果是其他字符就把s替换为其他字符
参考网址:https://zhidao.baidu.com/question/328466757201619245.html
转载于:https://blog.51cto.com/bbhome/1930180