<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Preceding text with text | Automate Find &amp;amp; Replace in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509862#M265145</link>
    <description>&lt;P&gt;FIND doesn't seem to like wildcards, but QSELECT can use them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TripleDigits.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/265089i7397C9EE24C174FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="TripleDigits.PNG" alt="TripleDigits.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But that will only &lt;EM&gt;select&lt;/EM&gt; them all for you.&amp;nbsp; To do the adding of the prefix to the numbers collectively, you would need something like an AutoLisp routine.&amp;nbsp; The &lt;EM&gt;finding&lt;/EM&gt; part would use the same wildcard string [read about them in Help for (wcmatch)], like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ssget "_X" '((1 . "*###*")))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That has the further advantage over QSELECT that it can find&amp;nbsp;Mtext &lt;EM&gt;and&lt;/EM&gt; Text all at once [and even Dimensions if such content is part of an override, not of the measured distance], whereas with QSELECT you would have to run it more than once and &lt;U&gt;A&lt;/U&gt;ppend the results together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it would be a matter of stepping through the objects it finds and adding the prefix before all the triple-digit portions.&amp;nbsp; No time to work that up now, but I may come back to it if you or someone else doesn't work it out first.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2016 01:56:19 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2016-08-19T01:56:19Z</dc:date>
    <item>
      <title>Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507060#M265133</link>
      <description>&lt;P&gt;Software version: AutoCAD 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem description:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My drawing contains large number of data outlets. Each outlet is numbered, it is a sequential numbering using 3 digits (001, 002, 003...558, 559, 560). Suddenly I received a request to prefix each of the 3 digit numbers with a floor number (L01-001, L01-002, L01-003...L01-558, L01-559, L01-560).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an in-built function in AutoCAD's "Find &amp;amp; Replace" to handle large number of these "pre-ceedings"? I have about 12 floors&amp;nbsp;with each of the floors containing over 500 outlets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finding each individual outlet and replacing it manually could take a very long time. (Find 00&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt; and click replace with L01-00&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/FONT&gt;, then change find to 00&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt; and click replace with L01-00&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/FONT&gt;...etc all the way to 560*12 = 6720 times...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Question_1_AutoCAD_Forums.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/264642i7F249A4DD057FA1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Question_1_AutoCAD_Forums.PNG" alt="Question_1_AutoCAD_Forums.PNG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe there can&amp;nbsp;a better way to handle this.&amp;nbsp;Help me please AutoCAD community, you are my only hope!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note for angry pros:&lt;/STRONG&gt; I did search the forums, and I am searching the forums - posting here is just one of the things that I do - I understand this question may have been asked elsewhere (although may have been phrased differently so I missed it) in which case a link is all that's needed to help me out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 01:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507060#M265133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T01:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507149#M265134</link>
      <description>&lt;P&gt;I found this post:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/autocad-2007-2008-2009/add-prefix-to-existing-text/td-p/2003026" target="_blank"&gt;https://forums.autodesk.com/t5/autocad-2007-2008-2009/add-prefix-to-existing-text/td-p/2003026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't solve my problem, because it does not search through the text - it only allows me to select objects to prefix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But given my objects are MText - this only adds prefix to the beginning. Which is nice, however not sufficient.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 03:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507149#M265134</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T03:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507221#M265135</link>
      <description>&lt;P&gt;Just search for the strings you wan to prefix - e.g. "002" and use "prefix-*" as the replacement string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For complex replacements based on regular expressions you can use srxText - see:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.cadforum.cz/cadforum_en/qaID.asp?tip=4136" target="_blank"&gt;http://www.cadforum.cz/cadforum_en/qaID.asp?tip=4136&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz" target="_blank"&gt;www.cadstudio.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 05:07:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507221#M265135</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-08-18T05:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507712#M265136</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Is there an in-built function in AutoCAD's "Find &amp;amp; Replace" to handle large number of these "pre-ceedings"? I have about 12 floors&amp;nbsp;with each of the floors containing over 500 outlets.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think you need add-ons to complete the task. e.g. &lt;A href="https://sites.google.com/site/cadkits/home/altext" target="_self"&gt;ALTEXT&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 11:01:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507712#M265136</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2016-08-18T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507719#M265137</link>
      <description>&lt;P&gt;Have you considered using a wild card and apply the find replace to a selection set?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 11:06:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507719#M265137</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2016-08-18T11:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507720#M265138</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;podmak wrote:
&lt;P&gt;&lt;STRONG&gt;Note for angry pros:&lt;/STRONG&gt; I did search the forums, and I am searching the forums - posting here is just one of the things that I do - I understand this question may have been asked elsewhere (although may have been phrased differently so I missed it) in which case a link is all that's needed to help me out.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Where did this even come from?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 11:07:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6507720#M265138</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2016-08-18T11:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6508779#M265139</link>
      <description>&lt;P&gt;Clarify something for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your dialog box image, you're asking to replace "008" with "&lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;008". &amp;nbsp;The text of the Mtext object it found shows "L1-007 008". &amp;nbsp;Is the end result intended to be&amp;nbsp;"L1-007 &lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;008"? &amp;nbsp;Should an automated routine&amp;nbsp;&lt;EM&gt;also&lt;/EM&gt; replace the "007" part of that same text content with "&lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;007", since that's also a 3-digit series? &amp;nbsp;[That would result in "L1-&lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;007 &lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;008".]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If not, meaning you &lt;EM&gt;don't&lt;/EM&gt; want to add "&lt;FONT color="#0000FF"&gt;L01-&lt;/FONT&gt;" before&amp;nbsp;&lt;EM&gt;every&lt;/EM&gt; instance of three numerical digits in a row, wherever they occur in any string, would it always be the case that the ones you want to prefix that to are &lt;EM&gt;at the end&lt;/EM&gt; of the content? &amp;nbsp;And would there &lt;EM&gt;never&lt;/EM&gt; be any strings ending in 3 digits in a row that you would &lt;EM&gt;not&lt;/EM&gt; want that added to? &amp;nbsp;Under those conditions, I can imagine a way to get a routine to do that.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 16:57:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6508779#M265139</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-08-18T16:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6508810#M265140</link>
      <description>Are you perhaps looking for a free add-on like this &lt;A href="https://apps.autodesk.com/ACD/en/Detail/Index?id=8051485828049059617&amp;amp;appLang=en&amp;amp;os=Win32_64" target="_blank"&gt;https://apps.autodesk.com/ACD/en/Detail/Index?id=8051485828049059617&amp;amp;appLang=en&amp;amp;os=Win32_64&lt;/A&gt;</description>
      <pubDate>Thu, 18 Aug 2016 17:06:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6508810#M265140</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2016-08-18T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509689#M265141</link>
      <description>&lt;P&gt;stackoverflow forums - those guys ripped me to pieces for asking a noob question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So I&amp;nbsp;remained damaged.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 22:55:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509689#M265141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T22:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509699#M265142</link>
      <description>&lt;P&gt;No, I pasted the image in as "in-progress".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All mtext objects on the drawing look like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;multiline text, usually 2 lines, but some have 4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Question_1_AutoCAD_Forums_01.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/265068i77C5FCB44D5A1E0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Question_1_AutoCAD_Forums_01.PNG" alt="Question_1_AutoCAD_Forums_01.PNG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically, after I find a solution, I will have a way to effectively turn the above numbers to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;L1-491&lt;/P&gt;&lt;P&gt;L1-492&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;L1-493&lt;/P&gt;&lt;P&gt;L1-494&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 23:00:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509699#M265142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-18T23:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509760#M265143</link>
      <description>&lt;P&gt;It looks like those text entities might&amp;nbsp;be easy to make a selection set of with QSELECT to isolate them from other texts. Find and replace might work with a string of three wildcards, if that is possible.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 23:50:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509760#M265143</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2016-08-18T23:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509851#M265144</link>
      <description>&lt;P&gt;Hi Vladimir,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for the input, unfortunately this is almost exactly what I am trying to avoid doing.&amp;nbsp;I don't want to search for each individual outlet (001, 002 etc...) and click replace with. Because I have 12 floors with each floor containing over 500 outlets. That's a lot of clicking...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the thing doesn't understand "*" (asterisk symbol) to be used as the searched string, effectively replacing my numbers to *; as per the following image, regardless of whether the "Use wildcards" checkbox is on or off. ...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline"&gt;&lt;img /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Question_1_AutoCAD_Forums_02.PNG" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/265088i4BA74242E55A8057/image-size/large?v=v2&amp;amp;px=999" role="button" title="Question_1_AutoCAD_Forums_02.PNG" alt="Question_1_AutoCAD_Forums_02.PNG" /&gt;&lt;/span&gt;﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So... that's not a very funny story... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your input anyway.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 01:48:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509851#M265144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-19T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509862#M265145</link>
      <description>&lt;P&gt;FIND doesn't seem to like wildcards, but QSELECT can use them:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TripleDigits.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/265089i7397C9EE24C174FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="TripleDigits.PNG" alt="TripleDigits.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But that will only &lt;EM&gt;select&lt;/EM&gt; them all for you.&amp;nbsp; To do the adding of the prefix to the numbers collectively, you would need something like an AutoLisp routine.&amp;nbsp; The &lt;EM&gt;finding&lt;/EM&gt; part would use the same wildcard string [read about them in Help for (wcmatch)], like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(ssget "_X" '((1 . "*###*")))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That has the further advantage over QSELECT that it can find&amp;nbsp;Mtext &lt;EM&gt;and&lt;/EM&gt; Text all at once [and even Dimensions if such content is part of an override, not of the measured distance], whereas with QSELECT you would have to run it more than once and &lt;U&gt;A&lt;/U&gt;ppend the results together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then it would be a matter of stepping through the objects it finds and adding the prefix before all the triple-digit portions.&amp;nbsp; No time to work that up now, but I may come back to it if you or someone else doesn't work it out first.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 01:56:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509862#M265145</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-08-19T01:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509888#M265146</link>
      <description>&lt;P&gt;Hi 3wood,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a nice ad-don, but man, did you pack it with notification windows... there are so many &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regretfully, it doesn't work for multi line text - it only adds the pre-fix to the first 3-digit number and skips the second line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your input nonetheless.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 02:23:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6509888#M265146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-19T02:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6510077#M265147</link>
      <description>&lt;P&gt;You might be able to use the "Replace All" option (button).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in any case the mentioned srxText could help for complex replacements. In your case you may want to use it as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;APPLOAD srxtext.vlx&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SRXTEXT2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;search using: Regular&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;search pattern: ([^\d]|\b)(\d{3})\b&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;replace pattern: L1-$2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;All&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;All&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Yes to all&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2016 06:26:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6510077#M265147</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2016-08-19T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6521475#M265148</link>
      <description>&lt;P&gt;Hi Vladimir,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your help. I did end up using the srxText function that uses .csv files to find and replace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The .csv function of srxText is exactly what I dreamed about - I am so glad someone came up with that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone else that comes across the same problem like I did -&amp;nbsp;&lt;A href="http://www.cadstudio.cz/en/download.asp?file=srxTEXT" target="_blank"&gt;http://www.cadstudio.cz/en/download.asp?file=srxTEXT&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the link stops working search for utility called srxText.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can test it for free and if it does what you want it to - you can buy it. Worked like a charm for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2016 01:19:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/6521475#M265148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-25T01:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8136886#M265149</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I have a similar problem.&amp;nbsp; I'm trying the srx app but I can't seem to figure out the right expression to get the replace command to work.&amp;nbsp; I click a sample text for the search pattern, then I followed the directions to determine my replacement pattern but I can't get it to work.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to append a prefix of "EX. " to text objects that are 7 numbers long then an E at the end&lt;/P&gt;&lt;P&gt;"1234567E" - "EX. 1234567E"&lt;/P&gt;&lt;P&gt;the wild card schema in the srx app is very different than what I'm&amp;nbsp; used to dealing with and there are different instructions depending if you use srxtext or srxtext2.&amp;nbsp; It says srxtext2 uses vb script which is a module that no longer comes stalk in Civil3D.&amp;nbsp; So I guess I would have to use the other.&amp;nbsp; Although it gives no warning if I try using srxtext2 command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 23:21:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8136886#M265149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-17T23:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8137268#M265150</link>
      <description>&lt;P&gt;I understand that the regular expression may sound complicated. Try to use SRXTEXT2 as the VBscript syntax is easier (not complicated additionally by LISP exceptions). VBscript in this case has nothing to do with the VBA support in AutoCAD.&lt;/P&gt;
&lt;P&gt;For your case, the SRXTEXT dialog should be as follows - the :&lt;SPAN&gt;&amp;nbsp; &lt;STRONG&gt;(\d{7}E)&lt;/STRONG&gt; means &lt;EM&gt;"capture the original string containing exactly 7 digits and E"&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;SRXTEXT2&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Search texts using [Regular expression/Exact string/Substring] &amp;lt;Substring&amp;gt;: &lt;FONT color="#FF0000"&gt;r&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Enter the searched pattern: &lt;FONT color="#FF0000"&gt;(\d{7}E)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Enter the replace pattern ($1$2 for regex captures): &lt;FONT color="#FF0000"&gt;Ex.$1&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Search only in [Layer/All] &amp;lt;All&amp;gt;:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Search only [Selected/All] &amp;lt;All&amp;gt;:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Number of searched entities: 4&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1234567E--&amp;gt;Ex.1234567E&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Perform [Replace/Yes to all/Exit]? &amp;lt;Exit&amp;gt;: &lt;FONT color="#FF0000"&gt;y&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vladimir Michl, &lt;A href="http://www.cadstudio.cz&amp;nbsp;" target="_blank"&gt;www.cadstudio.cz&amp;nbsp;&lt;/A&gt; &lt;A href="http://www.cadforum.cz" target="_blank"&gt;www.cadforum.cz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 06:02:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8137268#M265150</guid>
      <dc:creator>vladimir_michl</dc:creator>
      <dc:date>2018-07-18T06:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8139036#M265151</link>
      <description>&lt;P&gt;Thank you! That worked perfectly.&amp;nbsp; I'll be sure to get familiar with the wildcard syntax of this app.&amp;nbsp; It has the potential to be a very powerful time saver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 17:30:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8139036#M265151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-18T17:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Preceding text with text | Automate Find &amp; Replace</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8181613#M265152</link>
      <description>&lt;P&gt;Hi Gents,&lt;/P&gt;&lt;P&gt;I wonder if someone can help me with a solution please?&lt;/P&gt;&lt;P&gt;I have about 300 drawings that I need to add a change to. All of the pipelines are from Phase 1 and we are now doing Phase 2 with minimal changes to the system. This means that the numbering needs to change. It's not&amp;nbsp;nice n easy like a prefix or suffix but the addition of the number 20 almost right in the middle of the pipeline number, ie. from 25-CW-1210-13724-CS1-NI-01 to 25-CW-1210-2013724-CS1-NI-01.&lt;/P&gt;&lt;P&gt;Does anyone know how I can search for theses pieces of text then add the 20 right in the middle there?&lt;/P&gt;&lt;P&gt;I'm not quite getting the hang of the srxtext command so would really appreciate a hand please.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lynda&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 07:48:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/preceding-text-with-text-automate-find-amp-replace/m-p/8181613#M265152</guid>
      <dc:creator>Llawrence</dc:creator>
      <dc:date>2018-08-07T07:48:08Z</dc:date>
    </item>
  </channel>
</rss>

