Regex

Devolio

Search

Regular Expression stuff.

Thursday, July 10. 2008

Projects abound

I apologize for the lack of updates recently. Between work, meetings, and fun little side projects, I've practically been coding in my sleep. I'll be back to a full time posting schedule soon, I promise. In the mean time, here's a little bit of a description of the projects I've been working on.

Magus - An old school web based RPG / Collectible card game. Collect, buy, sell and trade cards to build powerful decks to duel your opponents. Nearly feature complete, in final testing before our first invite-only release.

Semantic IO - A flexible semantic input/output engine. Enter a file, text, or a URL and pull out an array of useful information. Quickly find phone numbers, addresses, names, or custom searches. Summarize long articles. Find keywords. Automatically tag bodies of text. Full i18n support.

And lastly, I'll be slowly updating and adding (literally) hundreds of research scripts, snippets, and documents to my resources. So - If there's anything specifically that you'd like to improve at or have an idea you want to share or explore - leave a comment. I'd love to hear from some of you lurkers.

Monday, January 21. 2008

PCRE Tester and Cheat Sheet

Regular Expressions are an extremely powerful tool in any programmers array. Though not always the easiest nuts to crack, so to speak, they are great - when they work correctly. After a rather 'amusing' night of trying to get a complex regular expression to work, I devised a plan.

Why not have both a PCRE Tester and Cheat Sheet on the same page? A tool that allows you to input multiple test strings to make things easier, while being able to look at all of the modifiers and syntax at the same time. The PCRE Tester and Cheat Sheet.

In the near future, I'll also be adding the ability to run preg_replace() instead of preg_match(), and a way to load some of the Regular Expressions from my library, as well as save and add your favorites.

Monday, October 15. 2007

8 Practical PHP Regular Expressions

Here are eight examples of practical PHP regular expressions and techniques that I've used over the past few years using Perl Compatible Regular Expressions. This guide goes over the eight different validation techniques and describes briefly how they work. Usernames, telephone numbers, email addresses, and more.
Continue reading "8 Practical PHP Regular Expressions"

Saturday, October 13. 2007

Regular Expressions in PHP

What are Regular Expressions?

Regular expressions are a way of describing a pattern, using this pattern with PHP you can match, examine, replace, and edit strings with extreme versatility and flexibility. This guide covers the basics of Perl Compatible Regular Expressions, or PCRE, and how to use preg_match(), preg_replace(), and preg_split().
Continue reading "Regular Expressions in PHP"