<?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: Use regex to determine next step</title>
<atom:link href="https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c579c478-22e5-4162-8c7e-7df788ca5c2c" rel="self" type="application/rss+xml" />
<link>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c579c478-22e5-4162-8c7e-7df788ca5c2c</link>
<description>ClipboardFusion RSS: Use regex to determine next step</description>
<lastBuildDate>Sun, 31 May 2026 11:46:41 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.clipboardfusion.com/Discussions/RSS/?TopicID=c579c478-22e5-4162-8c7e-7df788ca5c2c</generator>
<item>
<title>RE: Use regex to determine next step</title>
<link>https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#5</link>
<pubDate>Fri, 22 May 2020 15:46:18 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#5</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Ah yep, good call!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Ah yep, good call!
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Use regex to determine next step</title>
<link>https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#4</link>
<pubDate>Fri, 22 May 2020 10:30:18 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#4</guid>
<category>ClipboardFusion</category>
<description><![CDATA[I added a BFS.Clipboard.Clear(); right before I copied from the field. seems to have worked.]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
I added a BFS.Clipboard.Clear(); right before I copied from the field. seems to have worked. <img src="https://www.clipboardfusion.com/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Use regex to determine next step</title>
<link>https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#3</link>
<pubDate>Fri, 22 May 2020 06:42:02 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#3</guid>
<category>ClipboardFusion</category>
<description><![CDATA[Thank you. I will try that. But will this not pick up that there is text from before I started the macro? I should probably clear the clipboard first?]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thank you. I will try that. But will this not pick up that there is text from before I started the macro? I should probably clear the clipboard first?
</div>
]]></content:encoded>
</item>
<item>
<title>RE: Use regex to determine next step</title>
<link>https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#2</link>
<pubDate>Wed, 20 May 2020 23:09:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c#2</guid>
<category>ClipboardFusion</category>
<description><![CDATA[There's a function that checks if there is text on the clipboard, BFS.Clipboard.HasText
, so you can do this:
if (BFS.Clipboard.HasText())
Hope that helps!]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
There's a function that checks if there is text on the clipboard, <div class="Inline"><pre>BFS.Clipboard.HasText</pre></div>, so you can do this:<br/>
<br/>
<div class="Inline"><pre>if (BFS.Clipboard.HasText())</pre></div><br/>
<br/>
Hope that helps!
</div>
]]></content:encoded>
</item>
<item>
<title>Use regex to determine next step</title>
<link>https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c</link>
<pubDate>Wed, 20 May 2020 07:59:43 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.clipboardfusion.com/Discussions/View/use-regex-to-determine-next-step/?ID=c579c478-22e5-4162-8c7e-7df788ca5c2c</guid>
<category>ClipboardFusion</category>
<description><![CDATA[So I am trying to expand my macros to skip some steps that are not always necessary. so I am checking a text field to see if text exists. If it does, several steps can be skipped, and if it doesn't some steps need to be taken.
Right now I'm fetching the text from the field using
text = BFS.Clip...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
So I am trying to expand my macros to skip some steps that are not always necessary. so I am checking a text field to see if text exists. If it does, several steps can be skipped, and if it doesn't some steps need to be taken.<br/>
<br/>
Right now I'm fetching the text from the field using<br/>
text = BFS.Clipboard.CopyText();<br/>
This works without issues.<br/>
<br/>
Then I try to set up an if/else statement,<br/>
if (text.Contains(""))<br/>
How can I get this to check if there is text or not? I know how to make it look for certain text, but not any text, or no text.
</div>
]]></content:encoded>
</item>
</channel>
</rss>