Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的 txt 文件,阅读此内容,对它们进行一些操作(例如编码和解码)并将结果保存在文件中。当我比较它的两个文件时,我看到内容相同。但是文件的大小是不同的。为什么?我该如何解决这个问题?
这可能有很多原因,例如不同的编码,或者可能一个正在使用\r\n而另一个只使用\n。
\r\n
\n
使用 BeyondCompare 中的十六进制比较来准确找出。
我得到了需要使用 preg match all 提取超链接标签内的值的 html 内容。我尝试了以下但我没有得到任何数据。我包含了一个示例输入数据。你们能帮我修复这段代码并在 play.asp?ID=(例如:我想从 play.asp?ID= 12345获取这个值12345)前面打印所有