Re: [OT] Great SSMS add in

2013-06-06 Thread Alex Maslyukov
Hi Greg, I am keen to find out what is the problem (I am the guy who developed this Add-in). if you can e-mailme exact error (like exception if it crushes) I will try to resolve it. Regards, Alex On 7 June 2013 09:36, David Burstin wrote: > > On 7 June 2013 09:31, Greg Wood wrote: > >> Cra

RE: regex - how to remove questionmark

2013-06-06 Thread James Chapman-Smith
Another alternative is to use LINQ: string.Join("", text.Where(x => x != '?')) It's probably not the most straight forward way of doing it, but it does allow a lambda to be used to filter on the characters of a string, which `Replace` and `Regex` do not. From: ozdotnet-boun...@ozdotnet.com [ma

RE: regex - how to remove questionmark

2013-06-06 Thread Ian Thomas
Thanks for all 3 suggestions. The string replace is fine for such a simple case, which I had decided – and as Greg K also points out. But regex.escape is what I was after (for use elsewhere, simplifying more complex string handling). _ Ian Thomas Victoria Park, Western Australia

Re: [OT] Great SSMS add in

2013-06-06 Thread David Burstin
On 7 June 2013 09:31, Greg Wood wrote: > Crashes my SSMS - 2008 R2 > > Over a network to a database with 1000's of objects at most > We are running SSMS - 2008 R2 and no one has had any problems. I suggest contacting the developer via his website. These are exactly the sort of issues he wants re

Re: [OT] Great SSMS add in

2013-06-06 Thread Greg Wood
Crashes my SSMS - 2008 R2 Over a network to a database with 1000's of objects at most Greg Wood g...@woodgreg.com 0417044439 On Wed, Jun 5, 2013 at 1:26 PM, Rinaldo De Paolis < rina...@connectedsystems.com> wrote: > Nice Work, just installed it works great > > ** ** > > *Rinaldo De Paol

RE: regex - how to remove questionmark

2013-06-06 Thread alg
place it in a character class [?] - Original Message - Subject: regex - how to remove questionmark From: "Ian Thomas" Date: 6/6/13 6:35 am To: ozdotnet@ozdotnet.com I am confusing myself in trying to use regular expression to remove a questionmark, which may be anywhere in a

Re: regex - how to remove questionmark

2013-06-06 Thread Greg Keogh
string fixed = Regex.Replace(input, Regex.Escape("?"), ""); Although a string Replace is just as good for this simple case. I know that if you're doing lots of this sort of thing in a more general and more complicated way then creating a new Regex instance just for the purpose is more efficient as

RE: regex - how to remove questionmark

2013-06-06 Thread Ian Thomas
Yes, string.replace is good enough - there wouldn't be much processing penalty in what I'm doing. It's just annoying that I can't remember (or even find) how to do this in regex - I thought just escaping \ the ? would be the way. _ Ian Thomas Victoria Park, Western Australia Fro

Re: regex - how to remove questionmark

2013-06-06 Thread David Burstin
If it doesn't have to be a regular expression why not just use string.replace? If it does have to be a regex then I need to get my notes out. On 06/06/2013 8:35 PM, "Ian Thomas" wrote: > I am confusing myself in trying to use regular expression to remove a > questionmark, which may be anywhere i

regex - how to remove questionmark

2013-06-06 Thread Ian Thomas
I am confusing myself in trying to use regular expression to remove a questionmark, which may be anywhere in a string. Can someone give me the right way? _ Ian Thomas Victoria Park, Western Australia