1 2 3 4 5 6 > >>   Sort: Rank

Regular Expression (RegEx) Information Center
Are you having problems using regular expressions when processing text strings in your applications or when editing text files? Welcome to visit this information center, where you can enhance your knowledge on regular expressions; learn how to write and test regular expressions. regex.fyicenter.com ...
2016-07-06, 3248👍, 1💬

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, 264👍, 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, 389👍, 0💬

MAC address validation
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separated by "-" or ":". For example, 0a-1b-3c-4d-5e-6f is a valid MAC address. How to write a single regular expression to validate a MAC address described above? Here is the regular expression for MAC addre...
2016-06-23, 11257👍, 4💬

💬 2016-06-23 FYIcenter.com: Hi Taylan, The test page is back working now. Try it.

💬 2016-06-22 Taylan: The test page is not working...

💬 2015-10-08 FYIcenter.com: Hi Coffee, the pattern can be revised to cover the 0a-1b:3c-4d:5e-6f case. See the updated answer.

(More comments ...)

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, 2234👍, 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, 2287👍, 0💬

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 of...
2015-05-22, 997👍, 0💬

Capturing Soso Spider entries from Apache Web log file
How to capture the Soso Spider 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 "-" "Sosospider+(+http://help.soso .com/webspider.htm)""-" 213.135.131.79 - - [13/May/2012:17:35:32 -0600] "POST /submit....
2013-02-04, 5811👍, 0💬

Capturing Jike Spider entries from Apache Web log file
How to capture the Jike Spider 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; JikeSpider; +http://shoulu.jike.com/spider .html)""-" 213.135.131.79 - - [13/May/2012:17:35...
2013-02-04, 2964👍, 0💬

Capturing Proximic Spider entries from Apache Web log file
How to capture the Proximic Spider 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; proximic; +http://www.proximic.com/info/ spider.php)""-" 213.135.131.79 - - [13/May/201...
2013-02-04, 3076👍, 0💬

Capturing Sogou web spider entries from Apache Web log file
How to capture the Sogou web spider 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 "-" "Sogou web spider/4.0(+http://www.sogou.c om/docs/help/webmasters.htm#07 )""-" 213.135.131.79 - - [13/May/2012:17...
2013-02-04, 11000👍, 0💬

Capturing Baidu spider entries from Apache Web log file
How to capture the Baidu spider 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; Baiduspider/2.0; +http://www.baidu.com/search/s pider.html)""-" 213.135.131.79 - - [13/May...
2013-02-04, 6008👍, 0💬

Capturing Ezooms bot entries from Apache Web log file
How to capture the Ezooms bot 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:35:32...
2013-02-04, 3650👍, 0💬

Capturing MSN bot entries from Apache Web log file
How to capture the MSN (Microsoft Network) bot 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; Yahoo! Slurp; http://help.yahoo.com/help/us/ ysearch/slurp)""-" 213.135.131...
2013-02-04, 8240👍, 0💬

Capturing Bing bot entries from Apache Web log file
How to capture the Bing bot 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; Yahoo! Slurp; http://help.yahoo.com/help/us/ ysearch/slurp)""-" 213.135.131.79 - - [13/May/201...
2013-02-04, 2839👍, 0💬

Capturing Google Bot entries from Apache Web log file
How to capture the Google Bot 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; Yahoo! Slurp; http://help.yahoo.com/help/us/ ysearch/slurp)""-" 213.135.131.79 - - [13/May/2012:17:3...
2013-02-04, 3221👍, 0💬

Capturing Yandex Bot entries from Apache Web log file
How to capture the Yandex Bot 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; Yahoo! Slurp; http://help.yahoo.com/help/us/ ysearch/slurp)""-" 213.135.131.79 - - [13/May/2012:17:3...
2013-02-04, 3902👍, 0💬

Capturing Yahoo! Slurp entries from Apache Web log file
How to capture the Yahoo! Slurp 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; Yahoo! Slurp; http://help.yahoo.com/help/us/ ysearch/slurp)""-" 213.135.131.79 - - [13/May/2012:17...
2013-02-04, 2249👍, 0💬

Capturing request method from Apache Web log file
How to capture the request method 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=10...
2013-02-04, 1925👍, 0💬

Parsing timestamp from Apache Web log file
How to parse timestamp elements from 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, 2113👍, 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=1000...
2013-02-04, 1895👍, 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, 2019👍, 0💬

Capturing response status code from Apache Web log file
How to capture the response status code 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 "-" "-" "...
2013-02-04, 1933👍, 0💬

Capturing response message size from Apache Web log file
How to capture the response message size 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 "-" "-" ...
2013-02-04, 1969👍, 0💬

1 2 3 4 5 6 > >>   Sort: Rank