I need to modify this pattern. Its working good when string have only one space between words. But I can have sometimes double space (I want only one), so I must add some count to my pattern, but I dont have idea how to do it
/^\w+( +\w+)*$/u
I need to modify this pattern. Its working good when string have only one space between words. But I can have sometimes double space (I want only one), so I must add some count to my pattern, but I dont have idea how to do it
/^\w+( +\w+)*$/u