I'm attempting to write a regex, but am failing miserably.
This might be a very silly problem, but what I need is to match a string of at least one character and a max of 80.
What I have now is:
I'm confused.Code:/^.{1,80}/
Thanks.
Printable View
I'm attempting to write a regex, but am failing miserably.
This might be a very silly problem, but what I need is to match a string of at least one character and a max of 80.
What I have now is:
I'm confused.Code:/^.{1,80}/
Thanks.
Immediate thought that may be wrong - maybe you need an end-of-line signifier?
Code:/^.{1,80}$/
Initially I had that.
I was using RegexPal to test it.
As it turns out it doesn't properly interpret the expression.
Works like a charm in PHP :)
Thanks