JavaScript is case sensitive.
And you can run it on the server side inside <@SCRIPT></@SCRIPT>

You could use the String.replace() method and the RegExp object.

Something like:

myString.replace(/ö/g, 'a');myString.replace(/ä/g,
'a');myString.replace(/å/g, 'a');

And the same again for uppercase:

myString.replace(/Ö/g, 'O');myString.replace(/Ä/g,
'A');myString.replace(/Å/g, 'A');

Is that what you're after?

Anthony -


----- Original Message ----- 
From: "Peter Ternström" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 17:33
Subject: Re: Witango-Talk: REPLACE


> OK.
>
> say that I want to replace:
>
> Å -> A
> Ä -> A
> Ö -> O
>
> å -> a
> ä -> a
> ö -> o
>
> in a variable, with regex. How would I do this? Point me in the right
> direction, please.
>
> Peter
>
>
>
> ----- Original Message ----- 
> From: "Bill Conlon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 29, 2004 12:13 AM
> Subject: Re: Witango-Talk: REPLACE
>
>
> REGEX
> On Thursday, October 28, 2004, at 03:06  PM, Peter Ternström wrote:
>
> > Oh no. I feel so stupid now. I read it wrong and thought it was
> > case-sensitive. Any ideas of making a case sensitive replace?
> >
> > :-)
> >
> >
> > ----- Original Message ----- From: "Ben Johansen" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, October 28, 2004 11:58 PM
> > Subject: RE: Witango-Talk: REPLACE
> >
> >
> > Unless it is a typo in the 5.5 docs
> > Excerpt from 5.0 docs: "<@REPLACE> is case insensitive."
> >
> > Case is insensitive hence A = a
> >
> >
> > Ben Johansen - http://www.pcforge.com
> > Authorized Witango & MDaemon Reseller
> > Available for Witango Developement
> >
> > -----Original Message-----
> > From: Peter Ternström [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, October 28, 2004 2:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: Witango-Talk: REPLACE
> >
> > Hello everyone,
> >
> > in the documentation for Witango 5.5 it says that <@REPLACE> is case
> > sensitive. However in tests, it seems that it is not case sensitive and
> > thinks a and A is the same character. Is this a known bug?
> >
> > Peter
> >
> > _______________________________________________________________________
_
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> >
> >
> > _______________________________________________________________________
_
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> > _______________________________________________________________________
_
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> >
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
> ________________________________________________________________________
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to