Assuming <PRODUCT_LIST>
tags will never be nested
preg_match_all('/<PRODUCT_LIST>(.*?)<\/PRODUCT_LIST>/s', $html, $matches);
//HTML array in $matches[1]
print_r($matches[1]);
More Related Contents:
- regular expression [closed]
- How to get “v.3.1.2” in string by regex php [duplicate]
- Regex to validate range of numbers from 50 to 1000 with step of 50 [closed]
- Replace preg_replace() e modifier with preg_replace_callback
- How do I find all YouTube video ids in a string using a regex?
- Is there a PHP function that can escape regex patterns before they are applied?
- Remove new lines from string and replace with one empty space
- php Replacing multiple spaces with a single space [duplicate]
- How to make dot match newline characters using regular expressions
- How do I make this preg_match case insensitive?
- Matching a space in regex
- Regex for names
- Parse a CSS file with PHP
- Extract URL from string
- How to split a long string without breaking words?
- How to capitalize first letter of first word in a sentence?
- How do I extract query parameters from a URL string in PHP?
- Regex to detect invalid UTF-8 string
- How to Regex-replace multiple tags with one tag?
- Split string into sentences using regex
- How to search in an array with preg_match?
- Regex & PHP – isolate src attribute from img tag
- Regex for checking if a string has mismatched parentheses?
- php regex word boundary matching in utf-8
- Replace tabs and spaces with a single space as well as carriage returns and newlines with a single newline
- How to validate a domain name using Regex & PHP?
- How to properly escape a backslash to match a literal backslash in single-quoted and double-quoted PHP regex patterns
- Regex matching table rows in HTML [duplicate]
- How to remove all numbers from string?
- Detecting a url using preg_match? without http:// in the string