preg-match-all
preg_match_all , get all img tag that include a string
this code get all img tags preg_match_all(\'/<img[^>]+>/i\',$a,$page); but I want get tags that their filenames includes \"next.gif\" or \"pre.gif\"[详细]
2023-02-01 06:44 分类:问答PHP: SQL output regex problem
Code <?php $sql = file_get_contents(\'source.sql\'); $regex = \'/CREATE TABLE IF NOT EXISTS|INSERT INTO|ALTER TABLE `[0-9a-zA-Z-_]+`/\';[详细]
2023-01-31 10:04 分类:问答Limit the number of results using preg_match_all PHP
Is there any way to limit the number of matc开发者_JAVA百科hes that will be returned using preg_match_all?[详细]
2023-01-30 21:41 分类:问答preg_match_all for <option></option> to get all matching values
Here is the string. 开发者_StackOverflow$string = <option class=\"abcd\" value=\"1.5\">Some Text with White Spaces</option>[详细]
2023-01-30 12:25 分类:问答PHP ->preg_match_all for following structure <h6>my headline</h6>some text ... <h6>another headline</h6> more text
I\'m desperate looking for the solution to get this text string <h6>First pane</h6> ... pane content ...[详细]
2023-01-28 13:52 分类:问答How to match words with common prefix in PHP?
I need to write a 开发者_StackOverflow中文版regex to match the word. To find exact word can be done using /\\bword\\b/ pattern.[详细]
2023-01-28 08:14 分类:问答PHP preg_match_all() not capturing subgroups
I\'m trying to parse a Twitte开发者_开发问答r atom feed in PHP but am running into this strange issue. I\'m calling preg_match_all with this regexp string:[详细]
2023-01-25 19:16 分类:问答Having a bit of regex headaches with varied links and href delimiters (" and ')
So, I want to match the following link structures with a preg_match_all in php.. <a garbage href=\"http:/开发者_开发知识库/this.is.a.link.com/?query=this has invalid spaces\" possible garbage>[详细]
2023-01-23 14:05 分类:问答PHP's preg_match() and preg_match_all() functions
What do the preg_match() and preg_match_al开发者_C百科l() functions do and how can I use them?preg_match stops looking after the first match. preg_match_all, on the other hand, continues to look until[详细]
2023-01-23 13:29 分类:问答php, preg_match, regex, extract specific text
I have a very big .txt file with our开发者_开发技巧 clients order and I need to move it in a mysql database . However I don\'t know what kind of regex to use as the information is not very different .[详细]
2023-01-22 06:41 分类:问答