Skip to content
Discussion options

You must be logged in to vote

正则没啥问题,不过BIN默认的分割也是换行(默认separate=\x0D\x0A),要跨行提取就需要设置下separate参数,比如:

10_search=ReferencedManagedType type[\r\n\s]+\d+\s+string class = "PrintText"[\s\S]+?0 StringParameter Text[\r\n\s]+\d+\s+string value = "(.+?)"[\s\S]+?0 StringParameter AuthorId[\r\n\s]+\d+\s+string value = "(?P<name>.*?)"
separate=0 ReferencedObject data
pureText=1

编码选择UTF-8,勾选编码对BIN生效
同时因为你name在message之后,需要在设置界面勾选name向上移动一位

separate就是分割文件的字符串,设置成任意不会在search中出现的字符串就行,比如=\x00\x00这种就等于是整个文件完全不分割。
不知道你这个name会不会为空,正则用的.*?可能会有黄色警告打印,实际不影响提取导入。

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fatecyx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants