I'm using a regex pattern to extract matching items from a string
My pattern is :
"^(([^\\.\\-\\,a-wy-z]([\\(]?(\\+|[x])?\\d+[\\)]?)?[\\s\\.\\-\\,]?([\\(\\d[\\)]?)?[\\s\\.\\-\\,]?(\\d+[\\s\\.\\-\\,]?)+[^\\.\\-\\,a-z])|((\\+|[x])?\\d+))$"
My string is
"This is the string +971 987654321 form which +91 9876543210 all the phone number +91 987 654 3210 has to be extracted +91 987 654 3210 and displayed in the +971-98-7654321 logcat and the post office box number is 233227"
But unfortunately the pattern is not identifying any matching pattern from the string. I have validated the expression from "Check RegExp" through intention action. Here the pattern successfully identifies all the phone numbers that i have used in my string
Any help is appreciated.