Single regx for all these Conditions 1.Should allow only aphanumeric 2. along with only one space between words 3. Should allow only special characters like -.,' 4. Should not allow leading space, trailing space and consecutive blank space.
Valid input:
"testing with 2 regx solution"
Invalid input:
" testing with 2 regx solution" or "testing %^with 2 regx solution "