"Replace text" using a text mask ? - Grasshopper2024-03-29T00:14:48Zhttps://www.grasshopper3d.com/forum/topics/replace-text-using-a-text-mask?commentId=2985220%3AComment%3A1849650&feed=yes&xn_auth=noI understand and I agree with…tag:www.grasshopper3d.com,2017-11-09:2985220:Comment:18496022017-11-09T16:02:47.721ZOlivier Suirehttps://www.grasshopper3d.com/profile/OlivierSuire
<p>I understand and I agree with your point Joseph.</p>
<p>I was marveling at all those other Wombat tools that I never knew about.</p>
<p>:)</p>
<p>I understand and I agree with your point Joseph.</p>
<p>I was marveling at all those other Wombat tools that I never knew about.</p>
<p>:)</p> Consider how much more useful…tag:www.grasshopper3d.com,2017-11-09:2985220:Comment:18495952017-11-09T15:08:35.241ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Consider how much more useful 'Match Text (TMatch)' (which <span style="text-decoration: underline;"><em><strong>does</strong></em></span> accept a wildcard pattern or RegEx expression) would be if only it returned an integer instead of a boolean, like <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf" target="_blank">JavaScript's 'indexOf()' method</a>, for example:</p>
<blockquote><p><strong>Return value:</strong> The index of the…</p>
</blockquote>
<p>Consider how much more useful 'Match Text (TMatch)' (which <span style="text-decoration: underline;"><em><strong>does</strong></em></span> accept a wildcard pattern or RegEx expression) would be if only it returned an integer instead of a boolean, like <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf" target="_blank">JavaScript's 'indexOf()' method</a>, for example:</p>
<blockquote><p><strong>Return value:</strong> The index of the first occurrence of searchValue, or -1 if not found.</p>
</blockquote>
<p>Like so many conventional programming languages going all the way back to BASIC, JavaScript has a rich set of text manipulation features: <em>indexOf(), match(), replace(), search()</em></p> Thanks Andy.
Wow...Wombat...…tag:www.grasshopper3d.com,2017-11-09:2985220:Comment:18497152017-11-09T14:04:00.965ZOlivier Suirehttps://www.grasshopper3d.com/profile/OlivierSuire
<p>Thanks Andy.</p>
<p>Wow...Wombat... This is what comes to my mind suddenly :</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769345603?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769345603?profile=original" width="612" class="align-full"/></a></p>
<p>Thanks Andy.</p>
<p>Wow...Wombat... This is what comes to my mind suddenly :</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769345603?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769345603?profile=original" width="612" class="align-full"/></a></p> wombat has a "text replace mu…tag:www.grasshopper3d.com,2017-11-09:2985220:Comment:18496502017-11-09T13:20:01.683ZAndrew Heumannhttps://www.grasshopper3d.com/profile/AndrewHeumann
<p>wombat has a "text replace multiple" for this purpose. It does not support masks either but will at least allow you do supply a list of fragments / replacements instead of having to chain the replace component.</p>
<p>wombat has a "text replace multiple" for this purpose. It does not support masks either but will at least allow you do supply a list of fragments / replacements instead of having to chain the replace component.</p> Oliver, you must post data/co…tag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18492592017-11-08T22:29:22.695ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Oliver, you must post data/code if you don't want to waste people's time.</p>
<p>And as noted above, 'Replace Text' does <em><strong>NOT</strong></em> accept masks, only "a specific text fragment".</p>
<p>Oliver, you must post data/code if you don't want to waste people's time.</p>
<p>And as noted above, 'Replace Text' does <em><strong>NOT</strong></em> accept masks, only "a specific text fragment".</p> Hi Joseph,
Well, text handli…tag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18490802017-11-08T22:14:42.590ZOlivier Suirehttps://www.grasshopper3d.com/profile/OlivierSuire
<p>Hi Joseph,</p>
<p></p>
<p>Well, text handling is not so limited since "Replace text" accepts "Patterns" (otherwise called "Masks" when talkling about paths) !</p>
<p>As David said in my post "Using ranges to define paths", there are some inconsistencies due to the development process.</p>
<p>I'm sure V2 will be much more flexible and coherent.</p>
<p>In the mean time, I havent found the formatting rules for "Replace text" ! </p>
<p>That's someting that hopefully will be improved too :…</p>
<p>Hi Joseph,</p>
<p></p>
<p>Well, text handling is not so limited since "Replace text" accepts "Patterns" (otherwise called "Masks" when talkling about paths) !</p>
<p>As David said in my post "Using ranges to define paths", there are some inconsistencies due to the development process.</p>
<p>I'm sure V2 will be much more flexible and coherent.</p>
<p>In the mean time, I havent found the formatting rules for "Replace text" ! </p>
<p>That's someting that hopefully will be improved too : providing helpfull...help for the components.</p>
<p></p>
<p>How would you go about and perform the forementionned task with "Replace text" ?</p> it seems it does nottag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18490782017-11-08T22:03:37.371Zng5 Alexhttps://www.grasshopper3d.com/profile/ng5
<p>it seems it does not</p>
<p>it seems it does not</p> Where did you get the idea it…tag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18490752017-11-08T22:02:06.662ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Where did you get the idea it accepts a mask? It says that 'F' is "(Text) Fragment to replace." - "a specific text fragment":</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769346321?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769346321?profile=original" width="383" class="align-full"/></a></p>
<p>Where did you get the idea it accepts a mask? It says that 'F' is "(Text) Fragment to replace." - "a specific text fragment":</p>
<p><a href="http://storage.ning.com/topology/rest/1.0/file/get/2769346321?profile=original" target="_self"><img src="http://storage.ning.com/topology/rest/1.0/file/get/2769346321?profile=original" width="383" class="align-full"/></a></p> Hi ng5 Alex,
Yes, it is the c…tag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18490062017-11-08T21:54:21.454ZOlivier Suirehttps://www.grasshopper3d.com/profile/OlivierSuire
<p>Hi ng5 Alex,</p>
<p>Yes, it is the case, but since you are suggesting this workaround, do you imply that the "Replace text" does not accept masks ?</p>
<p></p>
<p>Hi ng5 Alex,</p>
<p>Yes, it is the case, but since you are suggesting this workaround, do you imply that the "Replace text" does not accept masks ?</p>
<p></p> Sure would be nice to have yo…tag:www.grasshopper3d.com,2017-11-08:2985220:Comment:18491632017-11-08T21:50:44.934ZJoseph Osterhttps://www.grasshopper3d.com/profile/JosephOster
<p>Sure would be nice to have your data to work with...? But Grasshopper text handling features are extremely limited, unfortunately. Did you consider using 'Match Text (TMatch)' instead of 'Replace Text (Rep)'?</p>
<p>Sure would be nice to have your data to work with...? But Grasshopper text handling features are extremely limited, unfortunately. Did you consider using 'Match Text (TMatch)' instead of 'Replace Text (Rep)'?</p>