Lee Mac 发表于 2022-7-6 10:47:49

使用matches集合中的条目是个好主意
 
要解决您的问题:
 
".*%%P(\\d*[\\\\.]?\\d*).*"
 

blueshake 发表于 2022-7-6 10:55:38

以下是在autocad中使用正则表达式添加尺寸公差的示例。
享受它。
公差。lsp
MdiTab18-32。arx。txt文件
公差。dcl

fixo 发表于 2022-7-6 10:58:16

请参阅如何使用组:
但经过快速测试)

blueshake 发表于 2022-7-6 11:02:37

是的,这是替换子字符串的常用方法
 
~'J'~

Lee Mac 发表于 2022-7-6 11:07:07

fixo 发表于 2022-7-6 11:10:35

Yes, it's the usual way to substitute substring
 
~'J'~
页: 1 [2]
查看完整版本: 分析字符串