We\'ve got such regexp:
var regexp = /^one (two)+ three/;
So only string like \"one two three\" or \"one two three four\
\"one two three\"
\"one two three four\
Still not 100% sure what you are asking for, but you can also nest them, like this:
var regexp = /^(one)+((\s+two)+((\s+three)+((\s+four)+)?)?)?$/;
Matches:
Does not match: