Re: Regular expression

Efran Cobisi <[email protected]> Wed, 9 May 2007 09:13:44 +0200
Newsgroups gmane.comp.windows.devel.dotnet.cx
Organization QBGROUP SpA
Message-ID <[email protected]>
Hi Rob,

I think this regular expression replacement could be a good starting
point for your needs:

string yourInput = "   test   input";
string yourOutput = Regex.Replace(yourInput, "\s{1,}", " ");

Hope this helps.

--
Efran Cobisi
http://www.cobisi.com

Implatform wrote:
> Talking of regular expressions does anybody know what the XPath
> normalize-space function would be if written as a regular expression?
>
> Rob.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com