<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[ViEmu Forums - :%s regex question]]></title>
		<link>http://www.viemu.com/forum/viewtopic.php?id=3206</link>
		<description><![CDATA[The most recent posts in :%s regex question.]]></description>
		<lastBuildDate>Tue, 16 Nov 2010 19:24:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6409#p6409</link>
			<description><![CDATA[<p>Thanks for the replies.</p><p>The regex I wanted to run replaced a bunch of c# code of the form:</p><p>this.myAnnoyingVariableName<br />myAnnoyingVariableName</p><p>with</p><p>NewVarName</p><p>In gvim I would write:</p><p>:%s/\(this.\)?myAnnoyingVariableName/NewVarName/gc</p><br /><p>What I was observing in VS2008, was &quot;pattern not found errors&quot;.&nbsp; I grew frustrated, because I would first test with the &quot;/&quot; slash command to have it work and then have the expression fail with :%s.</p><p>Finally, I gave up and cracked open gvim to do it.</p><p>It could possibly be user error, but as I&#039;m pretty sure I entered exactly the same expression in gVim, so I doubt it. Perhaps an environment difference or a VS bug?</p><p>My intellisense is hopelessly broken for this project (don&#039;t get my started into a rant about why Microsoft refused to fix it for 2008). Could that have an impact? To clarify: it&#039;s the automatic pop-ups and function declaration tips that don&#039;t work. Manual invocation of intellisense works outside of function calls. For function calls, I have to invoke the menu goto-class definition command.</p><p>Anyways, I like the Vim emulation, but I&#039;m balking a bit at 99$ without flawless Vim regex search /substitution compatibility. I also need similar undo as Vim; undo is not complete in my mind right now in this emulator.</p><p>Best regards.</p>]]></description>
			<author><![CDATA[dummy@example.com (vicegrip)]]></author>
			<pubDate>Tue, 16 Nov 2010 19:24:46 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6409#p6409</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6272#p6272</link>
			<description><![CDATA[<p>Of corse it will do error: title=&quot;&quot; <br />Insted you can try: title=&quot;&quot;</p><p>But to do what you want its only:</p><p>Text to Find:<br />title=&quot;the title&quot;</p><p>Replace with:<br />title=&quot;the title&quot; alt=&quot;the title&quot;</p><p>If this is what you mean.... I hope it helps...</p>]]></description>
			<author><![CDATA[dummy@example.com (fliboub)]]></author>
			<pubDate>Wed, 10 Nov 2010 12:46:26 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6272#p6272</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6212#p6212</link>
			<description><![CDATA[<p>Vicegrip,</p><p>:%s/\(this.\)\?variable/newvariable/g</p><p>works for me. If it doesn&#039;t, can you please post a sample text and substitution in which this doesn&#039;t work?<br />Thanks,</p><p>-- Isaac</p>]]></description>
			<author><![CDATA[dummy@example.com (Isaac_Symnum)]]></author>
			<pubDate>Mon, 08 Nov 2010 10:31:48 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6212#p6212</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6109#p6109</link>
			<description><![CDATA[<p>I ended up just cracking open gvim to do this. Somewhat disappointing, I have to say.</p>]]></description>
			<author><![CDATA[dummy@example.com (vicegrip)]]></author>
			<pubDate>Thu, 04 Nov 2010 15:29:50 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6109#p6109</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6091#p6091</link>
			<description><![CDATA[<p>Grrr and maybe not:</p><p>It did one replace.. then stopped working.</p><p>Now, it just highlights the searched for pattern but then fails to replace it with an error of <br />&quot;pattern not found&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (vicegrip)]]></author>
			<pubDate>Wed, 03 Nov 2010 19:55:55 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6091#p6091</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6090#p6090</link>
			<description><![CDATA[<p>Never mind... I guess I&#039;m blind.</p><p>:s/\(this.\)\?variable/newvariable/g</p><br /><p>works.</p>]]></description>
			<author><![CDATA[dummy@example.com (vicegrip)]]></author>
			<pubDate>Wed, 03 Nov 2010 19:51:26 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6090#p6090</guid>
		</item>
		<item>
			<title><![CDATA[Re: :%s regex question]]></title>
			<link>http://www.viemu.com/forum/viewtopic.php?pid=6089#p6089</link>
			<description><![CDATA[<p>Ok, getting a little frustrated with substitution in vimEmu. </p><p>In gvim I enter it as follows:</p><p>:%s/\(this\.\)\?blahblah/adaada/gc</p><p>Works there.</p><p>I&#039;ve tried the following in vimEmu:<br />:%s/\(this\.\)\?blahblah/adaada/g<br />:s/\(this\.\)?blahblah/adaada/g<br />:%s/\(this.\)?blahblah/adaada/g</p><p>etc...</p><p>What escape sequence do I need to do:</p><p>s/(this\.)?variable/newvariable/g</p><p>Such that:</p><p>&quot;this.variable&quot; OR &quot;variable&quot; is replaced with: &quot;newvariable&quot;</p>]]></description>
			<author><![CDATA[dummy@example.com (vicegrip)]]></author>
			<pubDate>Wed, 03 Nov 2010 19:31:55 +0000</pubDate>
			<guid>http://www.viemu.com/forum/viewtopic.php?pid=6089#p6089</guid>
		</item>
	</channel>
</rss>
