Tags related to 'regex'

Learn Regex The Hard Way Scanning And Parsing Text Without Going Insane
Category:
Learn Regex The Hard Way Scanning And Parsing Text Without Going Insane
If you run into strings like "s+.?(?i)a+b?" and your eyes glaze over like a pair of old fashioned donuts, then this book is for you. When you're done you will be able to read that string, understand what's going on with regex, learn when to use them, learn to write them, and learn how to write simple parsers to avoid abusing regex to process your strings.

XRegExp: JavaScript regex library
Category:
XRegExp: JavaScript regex library
XRegExp is an open source (MIT license) JavaScript library that provides an augmented, extensible, cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods.

XRegExp is fully compliant with the regular expression flavor specified in ES3 and ES5, and has been tested with Internet Explorer 5.5–8, Firefox 2–3.6, Safari 3–4, Chrome 1–4, and Opera 9.5–10.5. It uses feature detection for its cross-browser support—no browser sniffing.

Advanced Regular Expression Tips and Techniques
Category:
Advanced Regular Expression Tips and Techniques | Nettuts+
Regular Expressions are the Swiss Army knife for searching through information for certain patterns. They have a wide arsenal of tools, some of which often go undiscovered or underutilized. Today I will show you some advanced tips for working with regular expressions.

RE2
Category:
RE2: a principled approach to regular expression matching
The feature-rich regular expression implementations of today are based on a backtracking search with a potential for exponential run time and unbounded stack usage. At Google, we use regular expressions as part of the interface to many external and internal systems, including Code Search, Sawzall, and Bigtable. Those systems process large amounts of data; exponential run time would be a serious problem. On a more practical note, these are multithreaded C++ programs with fixed-size stacks: the unbounded stack usage in typical regular expression implementations leads to stack overflows and server crashes. To solve both problems, we've built a new regular expression engine, called RE2, which is based on automata theory and guarantees that searches complete in linear time with respect to the size of the input and in a fixed amount of stack space.

15 PHP regular expressions for web developers
Category:
15 PHP regular expressions for web developers
Regular expressions are a very useful tool for developers. They allow to find, identify or replace text, words or any kind of characters. In this article, I have compiled 15+ extremely useful regular expressions that any web developer should have in his toolkit.

RegEx: online regular expression testing
Category:
RegEx: online regular expression testing
Test regular expressions with the java.util.regex package

A nice small online regular expression tester
REX: XML Shallow Parsing with Regular Expressions
Category:
REX: XML Shallow Parsing with Regular Expressions
how to parse XML using Regular Expressions, including examples in perl and JavaScript
Rex V: an AJAX Regular EXpression eValuator
Category:
Rex V: an AJAX Regular EXpression eValuator
This useful ajaxian tool allows to try your regular expressions online in three different flavors (PCRE, Posix and Javascript)