I've parked my brain today and can't figure out a simple regular expression to validate email subjects (1 to 50 chars) and messages (1 to 5000 chars).
The rules are that it should allow any combination of characters as long as it does not start or end with whitespace, and is the given length
I know it's easy, but I'm getting bleary eyed!
Here's my current attempt which is both incorrect and incomplete:
Code: Select all
^\w+ї\w\W\ \.,:@;-]{1,50}ї\w\.]+$Can anyone help out? Thanks.