<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-30433900.post4635671313639848682..comments</id><updated>2010-06-04T20:06:13.538+12:00</updated><category term='install'/><category term='setup'/><category term='Microsoft'/><category term='cellphone'/><category term='documentation'/><category term='generic'/><category term='dispose'/><category term='VCard'/><category term='compact framework'/><category term='Build'/><category term='event'/><category term='collection'/><category term='Windows'/><category term='tooltip'/><category term='help'/><category term='sqleverywhere'/><category term='msmq'/><category term='Connectivity'/><category term='threading'/><category term='interface'/><category term='exceptions'/><category term='Tech Ed'/><category term='download'/><category term='member'/><category term='user interface'/><category term='ce'/><category term='app'/><category term='sqlmobile'/><category term='.net'/><category term='performance'/><category term='image'/><category term='QR Code'/><category term='strings'/><category term='invoke'/><category term='intellisense'/><category term='scripts'/><category term='focus'/><category term='database'/><category term='invokerequired'/><category term='debug visualizer'/><category term='Network'/><category term='debug'/><category term='xml'/><category term='screen'/><category term='Windows Forms'/><category term='Internet'/><category term='controls'/><category term='TFS'/><category term='Code Contracts'/><category term='deployment'/><category term='Devices'/><category term='VB6'/><category term='Conspiracy Theories'/><category term='WP7'/><category term='smartphone'/><category term='Humour'/><category term='class library'/><category term='sql server'/><category term='Operator'/><category term='visual studio'/><category term='C#'/><category term='Obsolescence'/><category term='Windows Phone 7'/><category term='certification'/><category term='sqlce'/><category term='activecontrol'/><category term='compatibility'/><category term='Ontempo Store'/><category term='visualiser'/><category term='Bugs'/><category term='sqlcompact'/><category term='sql'/><category term='Pos .Net'/><category term='Work Items'/><category term='html'/><category term='icon'/><category term='Tools'/><category term='asyncronous'/><category term='activate'/><category term='POS'/><category term='IE'/><category term='Software Quality'/><category term='Code Sample'/><category term='web browser'/><category term='framework'/><category term='break on all errors'/><category term='WPF'/><category term='Windows CE'/><category term='delegate'/><title type='text'>Comments on Yort on .NET: Case Insensitive String Replace</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.yortondotnet.com/feeds/4635671313639848682/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html'/><author><name>Yort</name><uri>http://www.blogger.com/profile/05345639234245424753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://2.bp.blogspot.com/-Ctp1JxtQ3lc/TWY9fMBtkYI/AAAAAAAAAC8/QVFlrf-dmDE/s220/profileimage.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-30433900.post-8903672310056778825</id><published>2010-06-04T20:06:13.533+12:00</published><updated>2010-06-04T20:06:13.533+12:00</updated><title type='text'>Hi MD,

For code that should answer your question,...</title><content type='html'>Hi MD,&lt;br /&gt;&lt;br /&gt;For code that should answer your question, see my latest post here;&lt;br /&gt;&lt;br /&gt;http://www.yortondotnet.com/2010/06/another-string-function.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/8903672310056778825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/8903672310056778825'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1275638773533#c8903672310056778825' title=''/><author><name>Yort</name><uri>http://www.blogger.com/profile/05345639234245424753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1195254832'/></entry><entry><id>tag:blogger.com,1999:blog-30433900.post-3745034220178374447</id><published>2010-05-30T21:33:36.666+12:00</published><updated>2010-05-30T21:33:36.666+12:00</updated><title type='text'>Yes, that&amp;#39;s what I mean - find the occurences ...</title><content type='html'>Yes, that&amp;#39;s what I mean - find the occurences (e.g. at which index) of a search text in a string in a case insensitive manner. As mentioned, I want to to insert some text before and after such as HTML tags. Sorry for the unclear question.&lt;br /&gt;&lt;br /&gt;Thanks for any help :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/3745034220178374447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/3745034220178374447'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1275212016666#c3745034220178374447' title=''/><author><name>MD</name><uri>http://www.blogger.com/profile/05235484501475351120</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10550953662105886693'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2104169698'/></entry><entry><id>tag:blogger.com,1999:blog-30433900.post-3977317075568491900</id><published>2010-05-30T21:12:40.704+12:00</published><updated>2010-05-30T21:12:40.704+12:00</updated><title type='text'>Hello again,

I&amp;#39;m not quite sure what you&amp;#39;...</title><content type='html'>Hello again,&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not quite sure what you&amp;#39;re asking for. If you search for a value case insensitively, and replace it with the same value in the original case, then you haven&amp;#39;t actually replaced anything.&lt;br /&gt;&lt;br /&gt;Do you mean you want to locate the start of a word in a case insensitive manner and then insert some kind of string before and after it to make it bold ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/3977317075568491900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/3977317075568491900'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1275210760704#c3977317075568491900' title=''/><author><name>Yort</name><uri>http://www.blogger.com/profile/05345639234245424753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1195254832'/></entry><entry><id>tag:blogger.com,1999:blog-30433900.post-6014237725718644481</id><published>2010-05-26T19:23:44.927+12:00</published><updated>2010-05-26T19:23:44.927+12:00</updated><title type='text'>Thanks for replying

I also do not feel good when ...</title><content type='html'>Thanks for replying&lt;br /&gt;&lt;br /&gt;I also do not feel good when using legacy VB6 string processing functions (e.g. Left, Right, Mid, etc.) unless they serve useful purposes. In my opinion, their names are just confusing. At least they should have been named StrLeft, StrRight, etc. to make more sense when MS migrated them to VB.NET. They did so for the file I/O Open function, it was renamed FileOpen... &amp;#39;Replace&amp;#39; is among those few examples where I feel comfortable using.&lt;br /&gt;&lt;br /&gt;Btw, how do I modify your function to perform a case-insensitive replace and return the original case-insensitive match(es) in the original string? For example, given the string&lt;br /&gt;&lt;br /&gt;&amp;quot;Microsoft Visual Studio 2010&amp;quot;&lt;br /&gt;&lt;br /&gt;when user searches for &amp;quot;VISUAL&amp;quot;, I want to change to:&lt;br /&gt;&lt;br /&gt;&amp;quot;Microsoft &lt;b&gt;Visual&lt;/b&gt; Studio 2010&amp;quot;&lt;br /&gt;&lt;br /&gt;e.g. add &lt;b&gt;...&lt;/b&gt; (for search highlight) and maintain original case. For this I need to know the original match (&amp;quot;Visual&amp;quot; and not &amp;quot;VISUAL&amp;quot;).&lt;br /&gt;&lt;br /&gt;WitH your method and VB Replace, I can only end up with:&lt;br /&gt;&lt;br /&gt;&amp;quot;Microsoft &lt;b&gt;VISUAL&lt;/b&gt; Studio 2010&amp;quot;&lt;br /&gt;&lt;br /&gt;Thanks in advance for any hints :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/6014237725718644481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/6014237725718644481'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1274858624927#c6014237725718644481' title=''/><author><name>MD</name><uri>http://www.blogger.com/profile/05235484501475351120</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10550953662105886693'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2104169698'/></entry><entry><id>tag:blogger.com,1999:blog-30433900.post-4784974443753900255</id><published>2010-05-26T11:51:25.234+12:00</published><updated>2010-05-26T11:51:25.234+12:00</updated><title type='text'>Thanks for that MD.

That is true, and I have done...</title><content type='html'>Thanks for that MD.&lt;br /&gt;&lt;br /&gt;That is true, and I have done that myself in some projects so I could use other VB functions, but it&amp;#39;s always felt kind of icky to me.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s not so much referencing a DLL with VisualBasic in the name, since it&amp;#39;s just a .Net assembly and it ships with the runtime, but more than I&amp;#39;m loading in a hell of a lot of other &amp;#39;stuff&amp;#39; with that assembly that I don&amp;#39;t neccesarily want... and that increases memory footprint etc. For the sake of a single string handling function, I&amp;#39;d still use my own unless there was a perf reason or something not to.&lt;br /&gt;&lt;br /&gt;However, it&amp;#39;s still a good tip as other people may not feel the same way, and the VB version probably has other benefits (particularly when it comes to globalisation etc).&lt;br /&gt;&lt;br /&gt;Thanks again.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/4784974443753900255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/4784974443753900255'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1274831485234#c4784974443753900255' title=''/><author><name>Yort</name><uri>http://www.blogger.com/profile/05345639234245424753</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1195254832'/></entry><entry><id>tag:blogger.com,1999:blog-30433900.post-2324206338002401692</id><published>2010-05-24T21:19:49.749+12:00</published><updated>2010-05-24T21:19:49.749+12:00</updated><title type='text'>If you&amp;#39;re using VB.NET, there&amp;#39;s an easier ...</title><content type='html'>If you&amp;#39;re using VB.NET, there&amp;#39;s an easier way&lt;br /&gt;&lt;br /&gt;newStr = Replace(oldStr, searchText, newText, , , CompareMethod.Text)&lt;br /&gt;&lt;br /&gt;If you&amp;#39;re using C#, just add a reference to Microsoft.VisualBasic.dll, and then use the above method from the Microsoft.VisualBasic namespace. You may need to pass default values to the optional parameters.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/2324206338002401692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30433900/4635671313639848682/comments/default/2324206338002401692'/><link rel='alternate' type='text/html' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html?showComment=1274692789749#c2324206338002401692' title=''/><author><name>MD</name><uri>http://www.blogger.com/profile/05235484501475351120</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='10550953662105886693'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.yortondotnet.com/2009/07/case-insensitive-string-replace.html' ref='tag:blogger.com,1999:blog-30433900.post-4635671313639848682' source='http://www.blogger.com/feeds/30433900/posts/default/4635671313639848682' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2104169698'/></entry></feed>
