本文介绍了不明原因的新行或休息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在解析一个HTML文件,由于某种原因,它在意外的地方有新行或换行符。


我想在忽略这些中断的同时匹配我的表达式。



我尝试过"\ n","\ r","""。一切都没有成功。



有没有人知道什么字符可以导致这个或建议尝试和debug?


我认为,如果有一个表达式可以匹配任何空格,包括中断,它就可以解决问题......



谢谢!

解决方案


Hi,

 

I am parsing an HTML file and for some reason it has new lines or line breaks in unexpected places.

I would like to match my expression while ignoring these breaks.

 

I tried "\n", "\r", "." all with no success.

 

Does anyone have an idea what characters can cause this or sugges a way to try and debug?

I think that if there's an expression that would match any white space including breaks it would do the trick...

 

Thanks!

解决方案


这篇关于不明原因的新行或休息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-21 13:57