pcre
How to get the end position of a regex (PCRE) in PHP?
I using the matches optionnal parameter with PREG_OFFSET_CAPTURE flag. I get the start offset and the matching expression....[详细]
2023-02-04 13:29 分类:问答How to write a PCRE regular expression to find a string with different content?
This may be a simple one but I can\'t seem to find the answer to it. I have a string in a HTML file that I am looking for:[详细]
2023-02-04 03:12 分类:问答Antimatch with Regex
I search for a regex pattern, which shouldn\'t match a group but everything else. Following regex pattern works basicly:[详细]
2023-02-03 21:28 分类:问答Help using PCRE in C++
this is my first time trying to build a C++ application, so I\'m kind of lost. I\'ve looked at some examples but I still dont really know what\'s wrong.[详细]
2023-02-03 19:16 分类:问答PHP regular expressions: No ending delimiter '^' found in
I\'ve been having some trouble with regular expressions. This is my code $pattern = \"^([0-9]+)$\"; if (preg_match开发者_如何学运维($pattern, $input))[详细]
2023-02-03 00:02 分类:问答C/C++ Memory Leak (Using PCRE)
// Returns a list of topic numbers found on the page vector<string> findTopics(char* rData, int rDataLen) {[详细]
2023-02-02 23:34 分类:问答Matching two sections same number of times
I\'m searching for code to parse the following: some texttext I need to remove unnecessary <span> occurrences, so that output is:[详细]
2023-02-02 06:55 分类:问答Continuing at the end of the previous match in RegEx (PCRE)
I\'m trying to prevent the \\G anchor from matching the beginning of the string.I only want it to match at the end of the last regex match.[详细]
2023-02-01 19:04 分类:问答Regular Expression to split string into nested array
I have this 开发者_如何学运维string: 1[2[5,6]],4,7[8,10] It represents nested IDs to be used to build an array of navigation items.[详细]
2023-02-01 09:32 分类:问答preg_match_all matching the whole string if no empty lines, and matching individually if there are
Hey, So in php I want preg_match_all to return: Array ( [0] => text1 [1] => text2 ) if the input is:[详细]
2023-02-01 04:34 分类:问答