﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / General .NET Discussion / .NET Forums  / Need help creating RegEx expression... / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Thu, 08 Jan 2009 08:15:33 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>Try this:&lt;/P&gt;&lt;P&gt;\binto\b.*?#(\w*)\b&lt;/P&gt;&lt;P&gt;However, use RegexOptions.SingleLine instead of MultiLine.</description><pubDate>Thu, 17 Aug 2006 14:27:33 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>Thanks guys! This is awesome information... I've submitted the PO for the RegExBuddy. &lt;br&gt;&lt;br&gt;The expression wont find the INTO #TEMP on its own line... it'll only find the one thats on the same line. What do I need to change?</description><pubDate>Thu, 17 Aug 2006 14:21:31 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>RegexBuddy, we use it all the time :)&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/3c1d9f10-be07-4f73-aa6e-ec54.png"&gt;</description><pubDate>Thu, 17 Aug 2006 14:05:04 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>I think it's only like $29 or something like that.&lt;/P&gt;&lt;P&gt;As for finding the INTO if it's on it's own line, no, you'll need to replace the first " " with a ( |$) or something like that.</description><pubDate>Thu, 17 Aug 2006 14:02:33 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>This is a very long a deep topic.  One thing I might suggest is purchasing a copy of RegExBuddy (&lt;A href="http://www.regexbuddy.com/"&gt;http://www.regexbuddy.com/&lt;/A&gt;) which will allow you to create and test expressions within an editor.  You can then take those expressions and import them over to .NET. &lt;/P&gt;&lt;P&gt;There is really no such thing as a "brief" explanation when it comes to RegEx. :w00t:</description><pubDate>Thu, 17 Aug 2006 14:00:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>Thanks! Would you mind briefly explaining to me how you created that expression? I'm new to RegEx expressions and having a hard time understanding how they work.&lt;P&gt;The expression you created will find the INTO statement whether it is on a line by itsself or on one line with the rest of the SQL statement?</description><pubDate>Thu, 17 Aug 2006 13:57:24 GMT</pubDate><dc:creator>StarkMike</dc:creator></item><item><title>RE: Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>System.Text.RegularExpressions.RegEx.IsMatch(myvalue, "into #(\w*?)( |$)", System.Text.RegularExpressions.RegexOptions.IgnoreCase Or System.Text.RegularExpressions.RegexOptions.Multiline)&lt;/P&gt;&lt;P&gt;The actual recular expression would be this:&lt;/P&gt;&lt;P&gt;into #(\w*?)( |$)&lt;/P&gt;&lt;P&gt;Make sure you use RegexOptions values so that the "into" will match "INTO" and so that the $ will match the end of a line.</description><pubDate>Thu, 17 Aug 2006 13:49:32 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>Need help creating RegEx expression...</title><link>http://forum.strataframe.net/Topic2238-14-1.aspx</link><description>These are my examples:&lt;br&gt;&lt;br&gt;SELECT *&lt;br&gt;INTO #TEMP&lt;br&gt;FROM TABLE&lt;br&gt;&lt;br&gt;SELECT * INTO #TEMP FROM TABLE&lt;br&gt;&lt;br&gt;I would like some help creating a RegEx pattern to find the word INTO followed by a space then a pound sign (#) then a wildcard for the temp table name then another space.&lt;br&gt;&lt;br&gt;Thanks</description><pubDate>Thu, 17 Aug 2006 13:37:34 GMT</pubDate><dc:creator>StarkMike</dc:creator></item></channel></rss>