How should look a code removing everything except full http url from string?
it’s there only way regex? if so, may somebody could give me any example
How should look a code removing everything except full http url from string? it’s
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Will extract a single URL from string:
Will extract multiple URLs from string into an array:
So to essentially ‘remove’ everything but the URL you would set the string to the matched value: