Need help with a regular expression

Discussion in 'Programming' started by C a s p e r, Sep 3, 2008.

  1. #1
    I have this issue I need a regular expression that will set a minimum amount of character allow to 250 and max of 1000

    I have one that does the max
    max. # of 150 characters|^[\s\S]{1,170}$
    Code (markup):
    Dont get how
    {1,170}
    Code (markup):
    is a max of 150 but in anycase thats what i got I tried

    but cant find anything for minimum tried regexlib.com and searched for minimum but nothing there matched what I am trying to do



    Got it :) Yaa!!
    ^[\s\S]{250,1000}$
    Code (markup):
    Duh
     
    C a s p e r, Sep 3, 2008 IP