preg-match-all
Finding used functions from php source file
Basically I want to find a function from a php string source content. I\'m trying to parse a php file and read its content into string. I want to find something like:[详细]
2023-03-21 08:16 分类:问答regex to pull all attributes out of all meta tags
I\'m trying to pull meta tags out of a html page, to compare two pages (live and dev) to see if they\'re SEO is the same after a site redesign/refactor. I need to compare title, meta tags (description[详细]
2023-03-21 01:00 分类:问答How to I preg_match_all starts with "http" and ends with (") or (') or white space(tabs, space, line break)
How do I write in regex that preg_match_all starts with \"http\"(without quotes) and ends with (\") or (\') or white space(tabs, space, line break)[详细]
2023-03-19 22:18 分类:问答Lookahead regex issue eating the last letter
My Code preg_match_all(\'/\\{([\\w]+)(\\s.*)?[^\\}]\\}(.*)\\{\\/\\w+[^\\}]\\}/\', $nbody, $matches ); My Template[详细]
2023-03-18 10:02 分类:问答php: Fetch google first result
I had this code that help me fetch the URL of an actor开发者_如何学JAVA page on IMDB by searching \"IMDB+Actor name\" and givng me the URL to his IMDB profile page.[详细]
2023-03-17 07:01 分类:问答Get repeated matches with preg_match_all()
I\'m trying to get all substrings matched with a multiplier: $list = \'1,2,3,4\'; preg_match_all(\'|\\d+(,\\d+)*|\', $list, $matches);[详细]
2023-03-17 02:56 分类:问答Extracting a 'word' matching certain criteria
I have the following string: SEDCVBNT S800BG09 7GFHFGD6H 324235346 RHGF7U S8-00BG/09 7687678 and the following regex:[详细]
2023-03-15 21:00 分类:问答Using a regular expression to extract URLs from links in an HTML document
I need to capture all links in a given html. Here is sample code: <div class=\"infobar\"> ... some code goes here ...[详细]
2023-03-14 20:59 分类:问答preg_match_all how to remove img tag?
$str=<<<EOT <img src=\"./img/upload_20571053.jpg\" /><span>some word</span><div>some comtent</div>[详细]
2023-03-14 15:08 分类:问答How to get all captures of subgroup matches with preg_match_all()? [duplicate]
This question already has answers here: Get repeated matches with preg_match_all() (6 answers) Closed 4 years ago.[详细]
2023-03-13 05:11 分类:问答