Pattern Matching for Country codes in JAVA : <p>I have a requirement to filter out data based on the country codes . For example if the phone numbers are 
 +911234567891,+922234567891,+933234567893.
Now we need to dynamically create patterns to get the country codes for the phone numbers. Some country codes might be +91,+3581,+93 etc.</p>

<p>can you please suggest an approach</p>
