Anyone who can help me extract certain texts from a string?
Say:
Contact us at (401) 739-4200 in Warwick, RI, and improve the appearance of your ... window treatments from The Window Shoppee Inc. in Warwick, Rhode Island. ... today at our location at 1517 Post Road, Warwick, RI 02888 (401-739-4200)
I just wanted to extract the orange highlighted one.
I tried the pattern \d{3}-\d{3}-\d{4} but it's giving me an error: the pattern does not match the input.
I tested the pattern using regex101.com and i got a full match.
Say:
Contact us at (401) 739-4200 in Warwick, RI, and improve the appearance of your ... window treatments from The Window Shoppee Inc. in Warwick, Rhode Island. ... today at our location at 1517 Post Road, Warwick, RI 02888 (401-739-4200)
I just wanted to extract the orange highlighted one.
I tried the pattern \d{3}-\d{3}-\d{4} but it's giving me an error: the pattern does not match the input.
I tested the pattern using regex101.com and i got a full match.