<< < 1 2 3 4 5 6 > >>   Sort: Date

"non-greedy" on quantified subpatterns +? *? {}?
How turn off the the greediness of quantified subpatterns? I want the quantified subpattern to be matched the minimum number of times possible? How to create a "non-greedy" quantified subpattern on this PHP script: if ($t=10): echo "Just started...!"; endif; if ($t=11): echo "Hungry!"; endif; if ($t...
2013-01-26, 2473👍, 0💬

Finding & characters in HTML document
How to find &amp; characters that are not part of HTML entities in HTML code? The the example HTML code is listed below:a & b c &amp; d a &lt; b c &#8364; d c && d The regular expression to find &amp; characters that are not part of HTML entities in an HTML document c...
2013-02-02, 2423👍, 0💬

PHP Regular Expressions (Perl-Compatible)
I am using regular expressions in PHP scripts and need to look at reference document frequently. If you are writing PHP scripts and using regular expressions, you need to bookmark this PHP official reference document: "Regular Expressions (Perl-Compatible)". Topics covered in "Regular Expressions (P...
2013-01-22, 2419👍, 0💬

Multiple line modifier - m
What is the multiple line modifier? How to use it? How the multiple line modifier can be used on this example text:06/10/2009 04:21 PM 69,584 avicap.dll 06/10/2009 04:21 PM 109,456 avifile.dll 07/13/2009 04:41 PM 32,816 COMMDLG.DLL 07/13/2009 04:41 PM 2,000 keyboard.drv 06/10/2009 04:42 PM 9,936 lze...
2013-02-02, 2417👍, 0💬

Regular-Expressions.info
What resources are offered at Regular-Expressions.info? Regular-Expressions.info is the premier website about Regular Expressions offering Complete Regular Expression Tutorial and Applications & Languages That Support Regexes. Regular-Expressions.info
2013-01-26, 2410👍, 0💬

Capturing user agent from Apache Web log file
How to capture the user agent from Apache Web log file? Here are some Apache Web log file entries:127.0.0.1 - frank [10/May/2012:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "-" "-" "-" 213.135.131.79 - - [13/May/2012:17:35:32 -0600] "POST /submit.jsp HTTP/1.0" 200 1024 "-" "-" "SID=1000;L...
2013-02-04, 2406👍, 0💬

Single line modifier - s
What is the single line modifier? How to use it? How the single line modifier can be used on this example text:class Hello { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. } } The single line modifier 's', also called "dot all" modifier, modifies ...
2013-02-02, 2405👍, 0💬

PCRE - Perl Compatible Regular Expressions
What is PCRE (Perl Compatible Regular Expressions)? The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX regular express...
2013-01-25, 2388👍, 0💬

Capturing scheme name from URL
How to capture scheme name from URL addresses with a regular expression? Here are URL address examples:ftp://asmith@ftp.exam ple.orghttps://login.example.com:5800 /http://en.wikipedia.org/wiki/W WW.html#Historyfile://localhost/c|/WINDOWS/cl ock.aviURL addresses are written in this format: scheme://d...
2013-02-03, 2382👍, 0💬

Quoted sequence \Q...\E
What is the quoted sequence to disable pattern metacharacters? How to write a regular expression to capture the main() method in a Java class like: class ABC { public static void main(String args[]){...} } The quoted sequence is a subpattern where pattern metacharacters are treated literally. A quot...
2013-01-26, 2377👍, 0💬

Escape sequence - New Line character \n
What is the escape sequence for the New Line or Line Feed character? How to write a regular expression to capture the last character before the New Line character? The escape sequence for the New Line or Line Feed character is \n, which is the same as \x0A. The regular expression to capture the last...
2013-01-26, 2376👍, 0💬

Decimal digit character class - \d
What is abbreviation of a character class of all decimal digits? How to write a regular expression using a character class abbreviation to capture signed integer numbers in a text string like this: from -32768 to 32767? The predefined abbreviation of a character class of all decimal digits is \d, wh...
2013-01-23, 2375👍, 0💬

Capturing cookie string from Apache Web log file
How to capture the cookie string from Apache Web log file? Here are some Apache Web log file entries:127.0.0.1 - frank [10/May/2012:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "-" "-" "-" 213.135.131.79 - - [13/May/2012:17:35:32 -0600] "POST /submit.jsp HTTP/1.0" 200 1024 "-" "-" "SID=100...
2013-02-04, 2369👍, 0💬

Regex Coach
What functions are offered by Regex Coach? The Regex Coach is a graphical application for Windows which can be used to experiment with (Perl-compatible) regular expressions interactively. It has the following features: It shows whether a regular expression matches a particular target string. It can ...
2013-01-25, 2360👍, 0💬

perlre - Perl regular expressions reference document
I am using regular expressions in Perl scripts and need to look at reference document frequently. If you are writing Perl scripts and using regular expressions, you need to bookmark this Perl official reference document: "perlre - Perl regular expressions". Even if you are using regular expressions ...
2013-01-22, 2358👍, 0💬

Escape sequence - Tab character \t
What is the escape sequence for the Tab character? How to write a regular expression to captures tab delimited fields like this: Milk $0.99 No tax? The escape sequence for the Tag character is \t, which is the same as \x09. The regular expression to capture tab delimited fields is: ([^\t]*+)\t? [^\t...
2013-01-26, 2345👍, 0💬

Capturing fragment id from URL
How to capture fragment id from URL addresses with a regular expression? Here are URL address examples:ftp://ftp.example.org /https://login.example.com:5800 /?mode=guest&lang=enhttp://www.google.com:80/api/e xample/submit.php?name=joe#newfile://localhost/c|/WINDOWS/do cument.html#chapter1URL add...
2013-02-03, 2340👍, 0💬

REGex TESTER
What functions are offered by REGex TESTER? REGex TESTER site allows you to do a regex test, i.e. it utilizes JavaScript (AJAX) to instantly validate regular expressions (regex), by searching and replacing strings in a text based on the regular expression. The result is live, it is updated instantly...
2013-01-25, 2340👍, 0💬

RegexAdvice.com
What resources are offered at RegexAdvice.com? You'll find regular expression forums and blogs here at RegexAdvice.com. If you're looking for help with a particular expression, check out the Construction Advice forum. You should also search for regular expressions in the regular expression library. ...
2013-01-25, 2340👍, 0💬

Capturing referer URL from Apache Web log file
How to capture the referer URL from Apache Web log file? Here are some Apache Web log file entries:127.0.0.1 - frank [10/May/2012:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 "-" "-" "-" 213.135.131.79 - - [13/May/2012:17:35:32 -0600] "POST /submit.jsp HTTP/1.0" 200 1024 "-" "-" "SID=1000;...
2013-02-04, 2330👍, 0💬

Validating Brazilian Postcodes
How to write a regular expression to validate Brazilian Postcodes? For example, 23080-060 is a valid Brazilian Postcodes. Here is the regular expression to validate Brazilian Postcodes: \d{5}-\d{3} \d{5} - 2 digits - - A - \d{3} - 3 digits
2013-01-29, 2327👍, 0💬

Negative look-ahead assertion (?!...)
What is a negative look-ahead assertion? How to use it? How to write a regular expression to find words without 'oo' in text like: how, to, look, google, school? A negative look-ahead assertion is a zero-width assertion that allows you to not match a subpattern beyond the current position (look-ahea...
2013-01-26, 2323👍, 0💬

Word character class - \w
What is abbreviation of a character class of all word characters? Does it represents any alphanumeric plus '_' characters? How to write a regular expression using a character class abbreviation to capture all words in a PHP script code like this: function get($key) {if (array_key_exists($key,$_POST) ...
2013-01-23, 2318👍, 0💬

Parsing all elements of URL addresses
How to parse out all elements from URL addresses with a regular expression? Here are URL address examples:ftp://ftp.example.org /https://login.example.com:5800 /?mode=guest&lang=enhttp://www.google.com:80/api/e xample/submit.php?name=joe#newfile://localhost/c|/WINDOWS/do cument.html#chapter1URL ...
2013-02-03, 2309👍, 0💬

<< < 1 2 3 4 5 6 > >>   Sort: Date