Yessum, I agree. You can do $("a#id").href.replace(/http:\/\/(?:www\.)?[a-z0-1-_]+\.(?:com|net|co\.uk)(. +)?/g, "$1"); I do sometimes. If it's not a string then you can just do something like String($("a#id").href).replace();
-----Original Message----- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Scott Sent: Tuesday, April 07, 2009 4:48 PM To: jQuery (English) Subject: [jQuery] Re: Regular Expression you can always use the RegExp object in JavaScript. On Apr 7, 3:26 pm, Franck Y <franck...@gmail.com> wrote: > Hello, > > Is there anyway to implement a regular expression feature. > It does not need to be full regxp butat leat soemthing like star > > *ek will match Creek > > Thanks