Can you give us the code snippet that is not working (and maybe a
description of what you want to achieve with that particular snippet)?
As I said in my previous mail, : doesn't need escaping, so there is
probably another problem with your regexp.
Pascal
PS Learn regexp and love it !!!!
> -----Original Message-----
> From: Paul Hastings [mailto:[EMAIL PROTECTED]
> Sent: maandag 28 juni 2004 14:11
> To: CF-Talk
> Subject: Re: dumb regex question
>
> > > how do you escape a ":" as in "h:mm" in regex?
> >
> > \: (back-slash colon)
>
> thanks but i tried that ("h\:mm"). i've never been able to
> get regex working fully for me.
>
> > I guess the whole thing is ^[0-9]{1}(\:)[0-9]{2}$
>
> well i want to replace the literal string "h:mm" with another
> value. i'm building an i18n js "clock" for non-gregorian
> calendars, so i have to handle dates/date manipulations
> myself--this includes localizing digits for display. what i'm
> doing is parsing out date/time patterns (eg, EEEE, MMMM d
> yyyy) from each calendar for a given locale & replacing these
> with localized datetime bits. it all works except for the h:mm bit.
>
> oh i dislike regex ;-)
>
> thanks.
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- dumb regex question Paul Hastings
- Re: dumb regex question Stephen Moretti (cfmaster)
- Re: dumb regex question Paul Hastings
- RE: dumb regex question Pascal Peters
- Re: dumb regex question Paul Hastings
- RE: dumb regex question Pascal Peters
- RE: dumb regex question Pascal Peters
- Re: dumb regex question Paul Hastings