Continuing from my earlier post, I have changed the query as according to femtoRgon\'s post some characters and anchors are not supported by elastic search.
I am looking
You forget to add - before ? in your regex and also use anchors if necessary.
-
?
"[0-9]{3}-?[0-9]{2}-?[0-9]{4}"
OR
"^[0-9]{3}-?[0-9]{2}-?[0-9]{4}$"