[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Trying to replace vertical pipe...


Subject: Re: [xsl] Trying to replace vertical pipe...
From: Michael Dykman <mdykman@xxxxxxxxx>
Date: Thu, 26 Aug 2010 13:03:20 -0400

Because of string notation, you might have to do some thing like "\\|95\\|"

However, in general for regular expression, using the square brackets
to create a character class takes away the regex magic from most
characters such as '|' and  '.'

   ie : "[|]95[|]"

On Thu, Aug 26, 2010 at 12:53 PM, Paul Harvey <paul_harv_2@xxxxxxxxx> wrote:
> Hmm, get "invalid escape character" when doing that...
>
>
> ----- Original Message ----
> From: David Carlisle <davidc@xxxxxxxxx>
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: Paul Harvey <paul_harv_2@xxxxxxxxx>
> Sent: Thu, August 26, 2010 12:35:35 PM
> Subject: Re: [xsl] Trying to replace vertical pipe...
>
> On 26/08/2010 17:26, Paul Harvey wrote:
>> I'm sure I can't be the first to face this, but have been unable to track
down
>>a
>> solution...
>>
> use \| to quote |
>
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs.
> ________________________________________________________________________
>
>



--
 - michael dykman
 - mdykman@xxxxxxxxx

 May the Source be with you.


Current Thread