> > 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