CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 3714:

Question

CAD 
 %  platform  category 
A
You can use the srxText LISP utility and regular expressions to replace only the first occurrence of a substring - e.g.:

search: \(.\)oldtext\(.\)
replace: \1newtext\2

will change

myoldtext1andoldtext2 -> mynewtext1andodltext2
For srxText see www.cadstudio.cz/developuk
ACADADTMDTMap
100% *CAD
6.4.2004   7042×  
   
this tip shared by ARKANCE experts applies to: AutoCAD · AutoCAD Architecture · MDT · AutoCAD Map 3D ·

See also:
Tip 14163:How to select DWG texts containing a certain number of characters?
Tip 13831:ReplMTcol - recoloring parts of text in paragraph Mtext.
Tip 13139:How to insert a new line into multiline text in the Find/Replace command?
Tip 12803:How to add double line-spacing to AutoCAD paragraphs?
Tip 9265:RENAME on steroids - complex renaming of AutoCAD objects (blocks, layers...)


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  





Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist