<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Macro to Replace Whole Word]]></title><description><![CDATA[<p dir="auto">Hi, I recorded a macro using Find and Replace to remove a whole word, (the word “um”) but when I run the macro it finds all occurrences of “um” in all words.  When I recorded the macro I checked “whole words only” but it didn’t change the text in the macro.  I then tried using Regex \bum\b which works in the Find/Replace box.  I see that using Regex caused the message=“1625” line to up to to 2 in the macro, but the macro still finds all instances, not just whole words.</p>
<p dir="auto">Could you see what I’m doing incorrectly?</p>
<p dir="auto">&lt;Action type=“3” message=“1700” wParam=“0” lParam=“0” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1601” wParam=“0” lParam=“0” sParam=“\bum\b” /&gt;<br />
&lt;Action type=“3” message=“1625” wParam=“0” lParam=“2” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1602” wParam=“0” lParam=“0” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1702” wParam=“0” lParam=“768” sParam=“” /&gt;<br />
&lt;Action type=“3” message=“1701” wParam=“0” lParam=“1609” sParam=“” /&gt;</p>
<p dir="auto">The sample text “um” I want to replace but not the um in number.</p>
<p dir="auto">0:09:55.380,0:09:58.980<br />
um</p>
<p dir="auto">0:09:57.240,0:10:01.980<br />
number 10</p>
<p dir="auto">Thanks for your help</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24368/macro-to-replace-whole-word</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Jul 2026 09:33:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24368.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Apr 2023 22:20:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Macro to Replace Whole Word on Sat, 15 Apr 2023 22:38:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximillianm" aria-label="Profile: MaximillianM">@<bdi>MaximillianM</bdi></a><br />
Glad it’s working now! Very strange that you were having this problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85698</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85698</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sat, 15 Apr 2023 22:38:22 GMT</pubDate></item><item><title><![CDATA[Reply to Macro to Replace Whole Word on Sat, 15 Apr 2023 22:37:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximillianm" aria-label="Profile: MaximillianM">@<bdi>MaximillianM</bdi></a><br />
Yes, my macro code is exactly the same.<br />
BTW, please wrap code like XML in a code block like so:<br />
``` (triple backticks)<br />
code here<br />
more code<br />
```<br />
so that it renders like this</p>
<pre><code>code here
more code
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/85697</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85697</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sat, 15 Apr 2023 22:37:33 GMT</pubDate></item><item><title><![CDATA[Reply to Macro to Replace Whole Word on Sat, 15 Apr 2023 22:36:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mark-olson" aria-label="Profile: Mark-Olson">@<bdi>Mark-Olson</bdi></a> Thanks for your help.  I rebooted my computer and now it works.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85696</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85696</guid><dc:creator><![CDATA[MaximillianM]]></dc:creator><pubDate>Sat, 15 Apr 2023 22:36:47 GMT</pubDate></item><item><title><![CDATA[Reply to Macro to Replace Whole Word on Sat, 15 Apr 2023 22:31:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maximillianm" aria-label="Profile: MaximillianM">@<bdi>MaximillianM</bdi></a><br />
does case matter? e.g., do you want to find <code>UM</code> and <code>Um</code> and <code>uM</code> in addition to <code>um</code>?</p>
<p dir="auto">In any case, it’s very strange that regex-replacing <code>\bum\b</code> doesn’t work for you. I was able to record and save a macro regex-replacing <code>\bum\b</code> with nothing, and it worked find for me.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/85693</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/85693</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sat, 15 Apr 2023 22:31:26 GMT</pubDate></item></channel></rss>