PHP regularly matches the url URL

is to find out the url, domain name in a pile of text, but the format is basically the same, with several parameters

.

URL for example: http://www.baidu.com/?source=.

full-text search matching output, a, at the beginning of http, which contains the URL of source,plan,unit,e_keywordid, please give me some advice on how to write php rules?

Apr.08,2021

/ incorrect


it is easy to write after posting examples of text content. You can first preg_match match the complete url, and use cyclic strpos to find the corresponding parameter fields

.
Menu