All expensive time of day.
There is a text example:
I am engaged in the manufacture, assembly and installation of advertising signs, large letters and banners. Also typing on the material. 890000000. I do everything from business cards to signs. I carry out the whole range of services. # typography @ tipografia
The essence of the function is to cut the phone from the text (my regular expression /89\d{9}/ ) and cut the hashtag #типография@tipografia (the only dynamic part in the “typography” tag is the rest does not change #******* @tipografia )
and output 3 variables from the function:
$awhich contains the source code without a phone and hashtag.$bwhich contains the phone"89000000000".$cwhich contains the hashtag"#типография@tipografia".
Help me please.