preg-match-all
Regex find specific tags for replace in a string
I have a string with some codes (ex:«USER_ID#USERNAME#STATUS»)for replacement like in this example:[详细]
2023-01-12 12:22 分类:问答Regex - Grab a specific word within specific tags
I don\'t consider myself a PHP \"noob\", but regular expressions are still new to me. I\'m doing a CURL where I receive a list of comments. Every comment has this HTML structure:[详细]
2023-01-08 15:34 分类:问答Why does preg_match_all poop out after so many characters?
I\'m having a problem with my preg_match_all statement. It\'s been working perfectly as I\'ve been typing out an article but all of a sudden after it passed a certain length is stopped working all tog[详细]
2023-01-07 18:55 分类:问答php preg_match_all, regex, extract specific value
I\'m trying to extract the users who ask questions on a classified ad website(http://trademe.co.nz/Trade-Me-Motors/Cars/Toyota/Hiace/auction-300294634.htm) . For some reasons the pattern which I\'m us[详细]
2023-01-07 13:28 分类:问答preg_match_all: Why would "this" match but "that" won't?
So, I\'m basically trying to match anything inside (and including) object tags, with this: <?php preg_match_all(\'/<object(.*)<\\/object>/\', $blah, $blahBlah); ?>[详细]
2023-01-07 11:56 分类:问答preg match not reading content between table
preg_match_all(\'|<table cellspacing=\"0\" cellpadding=\"0\" summary=\"Flight Timetable search results\" id=\"timeTable\">(.*?)</table>|\', $read, $foo, PREG_SET_ORDER);[详细]
2023-01-07 10:46 分类:问答pregmatch separate number and character
BC1024 , AB124 , CBC2548 , using preg match to separate the number and character , For that 开发者_JAVA百科i tried this preg match expression , but its not working greatly ,[详细]
2023-01-06 12:40 分类:问答Enable whitespace in php regular expresssion
I want to have A-Z, 0-9 and whitespace ignored in regular expression, currently I have this, it works but whitespaces are ignored开发者_StackOverflow too but I need them.[详细]
2023-01-05 10:54 分类:问答PHP REGEX: Ignore + and #
So here is what I\'m doing exactly: I have a form with a caption on the right of it, I want to write in the form only A-Z,0-9 and whi开发者_如何转开发tespaces, and for the caption I want to do the op[详细]
2023-01-05 10:52 分类:问答PHP: Trouble with preg_match_all() return
I\'m writing this quick script to extract chatroom names from the source of a webpage. I\'m grabbing the data with fopen() and fgets() and that all returns fine.[详细]
2023-01-05 10:16 分类:问答