Try your regex with online tools, what you need is simple
"kausik-(\d+)"
http://www.gethifi.com/tools/regex
http://regexpal.com/
http://nregex.com/nregex/default.aspx
2012/1/10 Kausik Bakshi <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
> I am very new in javascript
>
> and I want a regular expression for
>
> kausik-543678
>
> here kausik- is fixed
> and
> the next integer field is dynamic
>
> I am trying to form a regular expression for
> kausik-123456 or kausik-45765677367567 or kausik-64747
>
> please help
>
> Thanks in Advance
> Kausik
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
--
Fernando Almeida
www.fernandoalmeida.net
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.