pcre
Regex autoincrement replacements
is there a string in regular expressions that can instruct it to autoincrement it\'s replacements, whether they be numbers or letters.[详细]
2023-03-11 08:11 分类:问答Url rewrite not working properly on apache 1.3
I h开发者_开发技巧ave this rule in .htaccess which works well on apache 2.0 and above but not with apache 1.3, please let me know how do I make it work with apache 1.3.x[详细]
2023-03-09 18:15 分类:问答Optimizing Regular Expression
I have one regular expression which convert html to txt. But It is taking a lot of CPU usages . How开发者_高级运维 can I optimize it ?[详细]
2023-03-09 15:05 分类:问答can somebody give an example usage of pcrecpp "DoMatch" routine?
Can somebody give a开发者_高级运维n example usage of pcrecpp DoMatch routine? Basically my requirement is to capture all the matches into a vector. I don\'t want to use FullMatch or PartialMatch becau[详细]
2023-03-08 01:05 分类:问答Why doesn't this regex reject trailing slashes (using negative lookahead)?
I\'m using the following regex (PCRE) to (very basically) validate an URL to start with http[s]:// and reject trailing slashes: ^https?://.+(?!/)$[详细]
2023-03-07 18:49 分类:问答how to strip all characters except for alphanumeric and underscore and dash?
I\'m not an expert with regex:( I\'m trying to to 开发者_JS百科strip all characters from the string except for alpanumeric and underscore and dash.[详细]
2023-03-07 06:28 分类:问答PHP:PCRE: How to replace repeatable char
for example I have following string: a_b__c___d____e How to preg_replace char _ to char \'-\', but only if part \' __...\' contains more than N repeated _.[详细]
2023-03-06 06:27 分类:问答PHP, preg_match, select part of many div tags
so i need to take the whole div with class \"1\" but it stops at the div class \"1.1\" endingso i want to get from this:[详细]
2023-03-01 10:38 分类:问答PCRE in PHP only finding the first thing the pattern matches
I have the following pattern using it to match HTML tags: ~<([[:alpha:]]+) ([[:alpha:]]+=\".*?\")*>.*?</\\1>~si[详细]
2023-03-01 10:34 分类:问答Regular expression to filter filenames in PHP
I have strings that represent file paths. Something like this. folder1/folderA/file1.flv folder2/folderB/file1.mp4[详细]
2023-02-28 03:31 分类:问答