I’ve got a regex but I’m not sure what the {1,} stands for. Full regex is next: ^.{1,}$.
I’ve got a regex but I’m not sure what the {1,} stands for. Full
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
^.{1,}$matches strings that have atleast one of any(non-newline) character.It is effectively same as:
^.+$The general form of this limiting quantifier is:
{min,max}which means minimum ofminrepetitions but not more thanmaxrepetitions.You can drop the
maxpart thereby specifying only the lower limit on the number of repetitions and no bound on the upper limit:{min,}In your case
{1,}means one or more repetitions.