<p>Does anyone use have a good regex library that they like to use? Most of the regexes that you find online either contain bugs or are so focused on the edge cases that it turns into a competition to validate whatever spec 100%. Of course you can write your own, but when you are billing by the hour its handy to have a library around. </p>

[{'answer_id': 10614, 'author': 'Jeff Atwood', 'author_id': 1, 'author_profile': 'https://Stackoverflow.com/users/1', 'pm_score': 2, 'selected': False, 'text': '<p>Besides being pretty much the best Regex tool on the market (seriously), RegexBuddy is about the only tool I know of that lets you switch amongst different Regex rendering engines.</p>\n\n<p><a href="http://www.regexbuddy.com/" rel="nofollow noreferrer">http://www.regexbuddy.com/</a></p>\n\n<p>See info here:</p>\n\n<p><a href="http://en.wikipedia.org/wiki/RegexBuddy" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/RegexBuddy</a></p>\n\n<blockquote>\n  <p>RegexBuddy\'s proprietary regular expression engine allows the software to emulate the rules and limitations of numerous popular regular expression flavors.</p>\n</blockquote>\n'}, {'answer_id': 10619, 'author': 'Ed.', 'author_id': 522, 'author_profile': 'https://Stackoverflow.com/users/522', 'pm_score': 2, 'selected': False, 'text': '<p>Boost, for c++</p>\n'}, {'answer_id': 10631, 'author': 'Derek Park', 'author_id': 872, 'author_profile': 'https://Stackoverflow.com/users/872', 'pm_score': 1, 'selected': False, 'text': '<p>Lately, I do all my text parsing in Perl.  If I needed regex\'s in another language, I\'d go with <a href="http://www.pcre.org/" rel="nofollow noreferrer">PCRE</a>.</p>\n\n<blockquote>\n  <p>The PCRE library is a set of functions that implement regular\n     expression pattern matching using the same syntax and semantics as\n     Perl&nbsp;5. PCRE has its own native API, as well as a set of\n     wrapper functions that correspond to the POSIX regular expression\n     API. The PCRE library is free, even for building commercial\n     software.</p>\n  \n  <p>PCRE was originally written for the\n     <a href="http://www.exim.org/" rel="nofollow noreferrer">Exim MTA</a>,\n     but is now used by many high-profile open source projects, including\n     <a href="http://httpd.apache.org/" rel="nofollow noreferrer">Apache</a>,\n     <a href="http://www.php.net/" rel="nofollow noreferrer">PHP</a>,\n     <a href="http://www.kde.org/" rel="nofollow noreferrer">KDE</a>,\n     <a href="http://www.postfix.org/" rel="nofollow noreferrer">Postfix</a>,\n     <a href="http://www.analog.cx/" rel="nofollow noreferrer">Analog</a>, and\n     <a href="http://nmap.org/" rel="nofollow noreferrer">Nmap</a>.\n     PCRE has also found its way into some well known commercial products, like\n     <a href="http://www.apple.com/safari/" rel="nofollow noreferrer">Apple Safari</a>.\n     Some other interesting projects using PCRE include\n     <a href="http://www.call-with-current-continuation.org/" rel="nofollow noreferrer">Chicken</a>,\n     <a href="http://www.ferite.org/" rel="nofollow noreferrer">Ferite</a>,\n     <a href="http://www.canonware.com/onyx/" rel="nofollow noreferrer">Onyx</a>,\n     <a href="http://www.hypermail.org/" rel="nofollow noreferrer">Hypermail</a>,\n     <a href="http://leafnode.sourceforge.net/" rel="nofollow noreferrer">Leafnode</a>,\n     <a href="http://www.askemos.org/" rel="nofollow noreferrer">Askemos</a>,\n     and <a href="http://www.wenlin.com/" rel="nofollow noreferrer">Wenlin</a>.</p>\n</blockquote>\n\n<p>PCRE is mature, and has the support of numerous projects.  Apache and Apple both have a vested interest in making it high-quality.  I doubt that any other RE library is likely to surpass it in both functionality and quality (or possibly either) anytime soon.</p>\n'}, {'answer_id': 10646, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': 3, 'selected': True, 'text': '<p>You can search for regular expression in <a href="http://regexlib.com/" rel="nofollow noreferrer">regexlib</a>.</p>\n'}, {'answer_id': 10687, 'author': 'Orion Edwards', 'author_id': 234, 'author_profile': 'https://Stackoverflow.com/users/234', 'pm_score': -1, 'selected': False, 'text': "<p>e-texteditor hilights what you're searching for as you type it. This is incredibly useful, as you can paste your 'sample text' into a file, and just type your regex into the search field, and see what it's matching right in front of you.</p>\n\n<p>None of these 'visual regex builder' things are substitutes for actually LEARNING regular expressions.</p>\n"}, {'answer_id': 34544283, 'author': 'gsl', 'author_id': 2048692, 'author_profile': 'https://Stackoverflow.com/users/2048692', 'pm_score': 0, 'selected': False, 'text': '<p>One nice source that provides commonly requested regular expressions is Perl\'s <a href="https://metacpan.org/pod/Regexp::Common" rel="nofollow">Regexp::Common</a>. </p>\n\n<p>Currently provides patterns for the following (from the home page):</p>\n\n<pre><code>Regexp::Common::balanced\nProvides regexes for strings with balanced parenthesized delimiters.\n\nRegexp::Common::comment\nProvides regexes for comments of various languages (43 languages currently).\n\nRegexp::Common::delimited\nProvides regexes for delimited strings.\n\nRegexp::Common::lingua\nProvides regexes for palindromes.\n\nRegexp::Common::list\nProvides regexes for lists.\n\nRegexp::Common::net\nProvides regexes for IPv4 addresses and MAC addresses.\n\nRegexp::Common::number\nProvides regexes for numbers (integers and reals).\n\nRegexp::Common::profanity\nProvides regexes for profanity.\n\nRegexp::Common::whitespace\nProvides regexes for leading and trailing whitespace.\n\nRegexp::Common::zip\nProvides regexes for zip codes.\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/10610', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/805/']