i want to check if string includes whitespace with RegExp but i want to use regexp pattern as a string, so:
new RegExp('^S+$').test("test")
new RegExp('^S+$').test("te st")
both gives false.
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
i want to check if string includes whitespace with RegExp but i want to use regexp pattern as a string, so:
new RegExp('^S+$').test("test")
new RegExp('^S+$').test("te st")
both gives false.