Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

结果中出现了形如 \n2 这样的换行加数字的结果,如何不匹配换行开始的结果呢? #74

Open
591776998 opened this issue Nov 24, 2021 · 3 comments

Comments

@591776998
Copy link

原字符串是 团队管理 1、团队成员赋能\n2、团队成员工作协助、流程管控\n3、团队稳定性
匹配后的结果是 团队,管理,成员,赋能,\n2,工作,协助,流程,管控,\n3,稳定性
其中 \n是换行符,希望能不匹配到换行符应该怎么做呢?user_dict.txt里面添加 \n 1000000 w 没有效果

@591776998
Copy link
Author

Q8X@7~ YRXUS WSH1U@B N0

@fukuball
Copy link
Owner

請問這種換行符號是在什麼系統出現的呢?

@tianyiw2013
Copy link

你直接str_replace替换为空格不就行了。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants