“每4次重复分割坐标串,正则表达式帮助?”的注释和答案?
https://knowledge.亚搏在线safe.com/questions/56721/splitting-string-of-coordiantes-every-4-repetition.html
关于“每4次重复分割坐标串,正则表达式有帮助吗?”的最新评论和答案
答案由oaralb
https://knowledge.亚搏在线safe.com/answers/56867/view.html
大家好
非常感谢您的时间,我已经离开了整个周末,所以现在才看到您的回复。你的解决方案发挥了魅力:)谢谢!< / p >
Tue, 31 Oct 2017 06:37:38 GMT
oaralb
答案由隆
https://knowledge.亚搏在线safe.com/answers/56749/view.html
stringreplace也可以为您工作。< / p >
Mode: Replace Regular Expression
Text to Replace: ((\S+\s+){3}\S+)\s+
Replacement Text: \1
<17 spaces>
格林威治时间2017年10月27日星期五15:01:52
隆
答案由jneujens
https://knowledge.亚搏在线safe.com/answers/56731/view.html
< p > < id = " 12368 " href = " /存储/附件/ 12368 - splitstringcoordinateexample.fmw”> splitstringcoordinateexample。逐步< / > < / p > < p > < / p > < p > < a href = " /存储/附件/ 12368 - splitstringcoordinateexample。>我已经添加了一个小的工作空间来做滴答(我认为)。
使用正则表达式,每个坐标被分组并存储为一个列表。然后每个第四个元素都添加一系列空格,类似于您的示例。后者被写入一个新的文本文件。对于您在这里添加的示例.txt文件,示例应该可以工作。希望这能解决你的问题?< / p > < p > < / p >
星期五,2017年10月27日12:28:41 GMT
jneujens
答案由oaralb
https://knowledge.亚搏在线safe.com/answers/56724/view.html
< p > < id = " 12367 " href = " /存储/附件/ 12367 -协调- string.txt”> coordinate-string.txt < / > < / p > < p >我看到论坛吞下每4日重复空格我上传文本文件与之前/之后< / p > < p >基本上我必须每4日空格替换为17空白。< / p >
2017年10月27日星期五10:40:30 GMT
oaralb