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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Fernando Almeida at Jan 10, 2012 at 3:41 pm
    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@ruby-forum.com>
    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@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    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@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedJan 10, '12 at 1:53p
activeJan 10, '12 at 3:41p
posts2
users2
websiterubyonrails.org
irc#RubyOnRails

2 users in discussion

Fernando Almeida: 1 post Kausik Bakshi: 1 post

People

Translate

site design / logo © 2021 Grokbase