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

Email address @ sign validation
According to the Internet specification RFC 2822, an email address must have a single "@" sign. For example, john@host.net is a valid email address. There should be at least one character before the "@" sign, but the total number of characters before the "@" sign should not be more than 64. There sh...
2016-06-23, 5620👍, 0💬

Capturing Plukkie Crawler entries from Apache Web log file
How to capture the Plukkie Crawler entries from Web log file? Here are some 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 "-" "Mozilla/5.0 (compatible; Plukkie/1.5; http://www.botje.com/plukkie.h tm)""-" 213.135.131.79 - - [13/May/2012:17...
2016-06-21, 5600👍, 0💬

Backreferences \g1, \g2, ...
What is a backreference? How to use a backreference? How to write a regular expression using a backreferences to capture 5-letter reversible words in a text string like this: civic, level, radar, rotor or stats ? Backreferences are references representing catured sub strings already matched in earli...
2013-01-23, 5449👍, 0💬

Escape sequence - Character in hexadecimal \x.. \x{..}
What is the escape sequence for a character written in hexadecimal format? How to write a regular expression to capture the escape (Backslash) \ character in a string like: \x5C The escape sequence for any character in hexadecimal format is '\x..' or \x{..}, '..' is the 2 hexadecimal digits. For exa...
2013-01-26, 5235👍, 0💬

Strings Containing Neither A Nor B
How to match strings that contain neither A nor B using regex? Regular Expression does not support NOT operator on a sub pattern. "Neither A nor B" must be implemented by a "Negative Look-Ahead" assertion. Let's assume that we have following text: Answer is A. Answer is D. Answer is B. Answer is C. ...
2016-06-23, 5152👍, 0💬

Parsing Windows TREE Command Output
Regex for parse output of Windows TREE command. For example: Folder PATH listing Volume serial number is 8704-028C C: +---BIOS | \---E0CN23WW | E0CN23WW.exe | +---driveri | 0rww03af.exe | 2tl502af.exe | 2tl602af.exe | 365.10-notebook-win10-64bit-in ternational-whql(1).exe | bob501af.exe | e0cn23ww_i...
2016-06-23, 5140👍, 0💬

Capturing request path from Apache Web log file
How to capture the request path 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 2326 "-" "-" "SID=100...
2013-02-04, 4874👍, 0💬

Parsing file entries from Windows "dir" command
How to write a regular expression to parse file entries from the output of Windows "dir" command? Here is an example output of the "dir" command: Directory of C:\Windows\System32 01/30/2013 11:44 AM . 01/30/2013 11:44 AM .. 07/13/2009 11:56 PM 0409 01/16/2012 10:13 PM 1033 06/10/2009 04:16 PM 2,151 ...
2013-02-01, 4828👍, 0💬

RegExLib.com
What resources are offered at RegExLib.com? RegExLib.com is the Internet's first Regular Expression Library, which indexed 3602 expressions from 2066 contributors around the world. RegExLib.com
2020-11-13, 4805👍, 1💬

💬 2020-11-13 Love Misuraca: Pls see the attached link and pictures of the property lake house and the files from dev System as well which means they would n...

Regular Expression with Logical AND
How to write AND logic in regular expression? How to build a regular expression to identify the following email paragraph as a spam message because it contains the word "bank", "account" and "money"? " I am inviting you for a business deal where this money will be shared between of us in the ratio o...
2015-05-22, 4791👍, 0💬

Capturing request protocol from Apache Web log file
How to capture the request protocol 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 2326 "-" "-" "SID...
2013-02-04, 4643👍, 0💬

Escape sequence - Character in octal \... \o{...}
What is the escape sequence for a character written in octal format? How to write a regular expression to capture the escape (Backslash) \ character in a string like: \x5C The escape sequence for any character in octal number format is '\...' or \o{...}, '...' is the 3 octal digits. For example: \06...
2013-01-26, 4475👍, 0💬

RegexMagic: Regular Expression Generator
What is RegexMagic? RegexMagic makes creating regular expressions easier than ever. While other regex tools such as RegexBuddy merely make it easier to work with regular expressions, with RegexMagic you don't have to deal with the regular expression syntax at all. RegexMagic generates complete regul...
2013-02-01, 4406👍, 0💬

Escape sequence - Carriage Return character \r
What is the escape sequence for the Carriage Return character? On Unix systems, a line break is a single New Line character. But on Windows systems, a line break is a Carriage Return character followed by a New Line character. How to write a regular expression to capture line breaks for both systems...
2013-01-26, 4377👍, 0💬

Visa credit card number validation
All credit card numbers issued by Visa must start with a 4 and have 13 or 16 digits. For example, 346997719493686 is a valid Visa credit card number. How to write a single regular expression to validate a Visa credit card number described above? Here is the regular expression for Visa credit card nu...
2013-01-22, 4309👍, 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, 4233👍, 0💬

Detecting missing closing parenthesis in program code
How to detect missing closing parenthesis in program code using regular expression? For example, I have the following program code: n = - (LN(1-(B/m)*(r/q))/LN(1+(r/q)) ;Can anyone help?
2013-01-29, 4170👍, 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, 3988👍, 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, 3953👍, 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, w...
2013-01-23, 3944👍, 0💬

Does negative character class match newline
Does negative character class [^a] match newline characters? How to write a regular expression to capture tags and attributes from this HTML code: A negative character class will match the newline character, if the newline character is not listed in the class. For example, "[^a]" will match the newl...
2013-02-02, 3903👍, 0💬

Expresso editor
What functions are offered by Expresso editor? The award-winning Expresso editor is equally suitable as a teaching tool for the beginning user of regular expressions or as a full-featured development environment for the experienced programmer or web designer with an extensive knowledge of regular ex...
2013-01-25, 3867👍, 0💬

Using negative character class [^...]
What is a negative character class? How to specify a negative character class in a regular expression? How to use negative character class to capture words that contains no vowel letters in this lyrics: Daddy started out in San Francisco, Tootin' on his trumpet loud and mean, Suddenly a voice said, ...
2013-02-02, 3845👍, 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? [^\...
2013-01-26, 3830👍, 0💬

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