works with first regex and without ajax