<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>ClipboardFusion RSS: Using RegEx to scrub clipboard text</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=e3d02a63-bf34-4eb5-a376-508c6fc8991f" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=e3d02a63-bf34-4eb5-a376-508c6fc8991f</link>
<description>ClipboardFusion RSS: Using RegEx to scrub clipboard text</description>
<lastBuildDate>Fri, 19 Jun 2026 08:12:52 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=e3d02a63-bf34-4eb5-a376-508c6fc8991f</generator>
<item>
<title>RE: Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#6</link>
<pubDate>Thu, 01 Dec 2016 18:02:03 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#6</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Glad to hear that you were able to get it sorted out!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Glad to hear that you were able to get it sorted out!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#5</link>
<pubDate>Wed, 30 Nov 2016 16:16:56 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Actually, I think I solved it, by playing around with the macro code.  This seems to work; it may not be the most efficient or most elegant, but it appears to do what I need:
using System;
using System.Text.RegularExpressions;
public static class ClipboardFusionHelper
{
public static string ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Actually, I think I solved it, by playing around with the macro code.  This seems to work; it may not be the most efficient or most elegant, but it appears to do what I need:<br/>
<br/>
using System;<br/>
using System.Text.RegularExpressions;<br/>
<br/>
public static class ClipboardFusionHelper<br/>
{<br/>
public static string ProcessText(string text)<br/>
{<br/>
 <br/>
//use the Regex class to replace any matched text with an empty string<br/>
text = Regex.Replace(text, "\\]\\[(.*?)\\]]", "");<br/>
<br/>
//use the Regex class to replace any matched text with an empty string<br/>
text = Regex.Replace(text, "\\[", "");<br/>
<br/>
//get ClipboardFusion to replace the text on the clipboard with the text variable<br/>
return text;<br/>
}<br/>
}
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#4</link>
<pubDate>Wed, 30 Nov 2016 15:22:11 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Mr. Malloch:
I've been using your excellent macro for about a year.  It works very well.
Sometimes, when I get the GUID from Outook, it throws in a pair of open brackets [[ at the beginning of the string.  Actually, I think it is happening 100% of the time.  That looks something like this:
[[o...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Mr. Malloch:<br/>
<br/>
I've been using your excellent macro for about a year.  It works very well.<br/>
<br/>
Sometimes, when I get the GUID from Outook, it throws in a pair of open brackets [[ at the beginning of the string.  Actually, I think it is happening 100% of the time.  That looks something like this:<br/>
<br/>
[[outlook:00000000C1D0ACB68AD1F6408208F54A44490FFC0700C271AE299A8A9044B0D85B9AC2B99B3C0000003EA8900000C271AE299A8A9044B0D85B9AC2B99B3C0000006EF67F0000][MESSAGE: Re: NAVAID Decommissioning (Lindbergh, Chuck (XAA))]]<br/>
<br/>
After running your macro, I end up with this:<br/>
<br/>
[[outlook:00000000C1D0ACB68AD1F6408208F54A44490FFC0700C271AE299A8A9044B0D85B9AC2B99B3C0000003EA8900000C271AE299A8A9044B0D85B9AC2B99B3C0000006EF67F0000<br/>
<br/>
What I usually do then is when I paste the result after the macro into a "add hyperlink" dialogue, I hit the home key, hit delete twice quickly and then hit enter.  That works, but if I could figure out a way to remove these two leading [[ characters with this same macro, that would be best.<br/>
<br/>
I'm looking around on various regex sites trying to learn more to figure this out on my own, but in the event you see this first and know of a quick solution, I would be very thankful to learn of it.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#3</link>
<pubDate>Wed, 02 Dec 2015 22:04:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Mr. Malloch:
Thank you very much!
It worked perfectly.  This has solved a really major multi-step workload issue for me that I repeat several times each day.
Again, thank you.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Mr. Malloch:<br/>
<br/>
Thank you very much!<br/>
<br/>
It worked perfectly.  This has solved a really major multi-step workload issue for me that I repeat several times each day.<br/>
<br/>
Again, thank you.
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#2</link>
<pubDate>Wed, 02 Dec 2015 21:16:15 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I was able to put together a little macro that should do what you need, and attached it to this post. .NET has a RegEx class build right into the framework, so the code is actually very simple. To use this macro, go to Settings-&gt;Macros, click the "Import" button, and select the file attached t...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I was able to put together a little macro that should do what you need, and attached it to this post. .NET has a RegEx class build right into the framework, so the code is actually very simple. To use this macro, go to Settings-&gt;Macros, click the "Import" button, and select the file attached to this post.<br/>
<br/>
I hope this works for you!
</div>
]]></content:encoded>
</item>
<item>
<title>Using RegEx to scrub clipboard text</title>
<link>https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f</link>
<pubDate>Wed, 02 Dec 2015 15:02:14 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/using-regex-to-scrub-clipboard-text/?ID=e3d02a63-bf34-4eb5-a376-508c6fc8991f</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Hello:
After considerable effort, I found a RegEx that will match a string that I wish removed from a clipboard capture.  My question is, how do I get that to work in CF?  By using a Macro?
For example, the following text is the entire clipboard capture from an Outlook Globally Unique Identifie...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Hello:<br/>
<br/>
After considerable effort, I found a RegEx that will match a string that I wish removed from a clipboard capture.  My question is, how do I get that to work in CF?  By using a Macro?<br/>
<br/>
For example, the following text is the entire clipboard capture from an Outlook Globally Unique Identifier (GUID).  The portion of the text that I wish to have removed is the bolded text in that capture.<br/>
<br/>
outlook:00000000C1D0ACB68AD1F6408208F54A44490FFC0700C271AE299A8A9044B0D85B9AC2B99B3C0000003EA8900000C271AE299A8A9044B0D85B9AC2B99B3C0000006EF67F0000<b>][MESSAGE: Re: NAVAID Decommissioning (Lindbergh, Chuck (XAA))]]</b><br/>
<br/>
So, the RegEx that matches that bold text is what's on the following line:<br/>
<br/>
\]\[(.*?)\]]<br/>
<br/>
How exactly should I do this?  If it goes into a macro, what would be the macro code that I should use?<br/>
<br/>
Thank you in advance!
</div>
]]></content:encoded>
</item>
</channel>
</rss>