Search
-
Categories
Tags
5.2 best php editor css debian error finger eleven google htaccess javascript javascript function life lifehouse linux love Lyrics mod_rewrite mysql mysql error mysql function nickelback nusphere nusphere phped nusphere phped 5.2 palawan palawan vacation paralyzer pdflib php4 pdflib php5 photoshop php phped php editor php error php function plugin regex regular expression regular expressions vacation vhcs video windows vista wordpress wordpress error wow
Tag Archives: regex
regex cheat sheet
Share Special Sequences \w - Any “word” character (a-z 0-9 _) \W - Any non “word” character \s - Whitespace (space, tab CRLF) \S - Any non whitepsace character \d - Digits (0-9) \D - Any non digit character . - (Period) – Any character except newline … Continue reading
regex: match all including new line
ShareI was looking for a way to match all characters plus new line and using “.” is not solely the answer because: The dot matches a single character, without caring what that character is. The only exception are newline characters. … Continue reading
Posted in developer's Guide, regex
Tagged match all, match all and new line, match new line, new line, preg_match, regex, regular expression
Leave a comment
regex: matching character +
Shareregex matching charater “+” Example: ad+ will match add, adD, addng but not ab or ac or a Related article: http://dreamluverz.com/developers-tools/regex/regex-matching-characters
preg_match case insensitive
Share preg_match case insensitive <?php // The ”i” after the pattern delimiter indicates a case-insensitive search if (preg_match(“/php/i”, ”PHP is the web scripting language of choice.”)) {     echo ”A match was found.”; } else {     echo ”A match was not found.”; } ?>
regex: backreferences
ShareBackreferences Perhaps the most powerful element of the regular expression syntax, backreferences allow you to load the results of a matched pattern into a buffer and then reuse it later in the expression. In a previous example, we used two … Continue reading