0

I need to extract 12 Char before and after based on phone number(1234567890) from a string.

Input String 1: 
My name is Joe and I reside in California & my phone is 1234567890. I'm a software developer

Expected Output:
my phone is 1234567890
1234567890. I'm a soft
Input String 1: (Here i don't have 12 char after phone number so capture end of the String)
My name is Joe my phone no is 1234567890 changed 

Expected Output:
phone no is 1234567890
1234567890 changed
Sadu
  • 43
  • 6
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Also, refer to [Learning Regular Expressions](https://stackoverflow.com/questions/4736) post for some basic regex info. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Sep 28 '20 at 10:41

0 Answers0