pcre
Pcre regular expression to ignore newlines
I\'ve a PCRE regular expression of the following form: Foo:\\\\s*(.*) When this is used to match Foo: b开发者_开发百科ar\\n then the group match contains the newline also.[详细]
2023-03-30 01:03 分类:问答Perl compatible regular expression (PCRE) in Python
I have to parse some strings based on PCRE in Python, and I\'ve no idea how to do that. Strings I want to parse looks like:[详细]
2023-03-28 16:45 分类:问答How to get text without some word (an ampersand issue)
I have a string like this: Hello @"user name". Where are you from, @"user name"? I开发者_JS百科 need to get the string between the " statements (user name), but I don\'t know[详细]
2023-03-23 14:06 分类:问答\w depends of the encoding?
I\'ve been searching the word boundaries from encodings with: <?php header(\'Content-Type: text/plain; charset=\"ISO-8859-7\"\');//Changing the charset attribute[详细]
2023-03-22 06:26 分类:问答Can regexes containing ordered alternation be rewritten to use only unordered alternation?
Suppose I have a regex language supporting literals, positive and negative character classes, ordered alternation, the greedy quantifiers ?, *, and +, and the nongreedy quantifiers ??, *?, and +?. (Th[详细]
2023-03-22 05:33 分类:问答Can regexes containing nongreedy (reluctant) quantifiers be rewritten to use only greedy ones?
Suppose I have a regex language supporting literals, positive and negative character classes, ordered alternation, and the greedy quantifiers ?, *, and +. (This is essentially a subset of PCRE without[详细]
2023-03-21 14:42 分类:问答Timezones validation regex
I\'m trying to validate timezones. Example: UTC-12 UTC-6:30 So - UTC will stay the same, sign will be alternating(+ or -) and number varies from -12 to +14.[详细]
2023-03-20 00:50 分类:问答RegEx to capture values in a string into a group, regardless of order?
I have a bunch of strings in a text file that have values in them I want to capture into groups.Each line/row in the text file is a unique record, but the values usually stick to a prescribed format i[详细]
2023-03-20 00:11 分类:问答Convert regexp from JavaScript to PCRE format
Seen many questions on same topic here, but didn\'t find the answer :( I\'ve got this {{Infobox[^]*?({{[^{}]*?}}[^]*?)*}} regex. Works as a charm in Javascript and here http://www.gskinner.com/RegExr[详细]
2023-03-19 20:06 分类:问答Match parentheses with preg_match() [duplicate]
This question alread开发者_JAVA百科y has answers here: Closed 11 years ago. Possible Duplicate: Regex for checking if a string has mismatched parentheses?[详细]
2023-03-19 14:23 分类:问答