Forum Discussion

jasmeenkaur27's avatar
jasmeenkaur27
Contributor
7 years ago

use of regular expression

Hi,

 

I have a regular expression which has to be used in my expected variable.

Below is my regular expression. I have to use it in m var htgit after accountno. Please explain how can I use it.

 

objReg = /(^A[A-Z\d]{8}\d$)/g

 

 

var htgit = "How to get in touch" + "\r\n" + "accountno" +

 

1 Reply

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    How you can use it...  to do what?

     

    A regular expression, as I understand it, is a string which gives instructions as to how to find information.  So, it really depends upon how you intend to use htgit as to how you will use your regular expression.