Article Preview
Buy Now
COLUMN
All About That Space
Making Regular Expressions Easier to Read and Maintain
Issue: 12.6 (November/December 2014)
Author: Kem Tekinay
Author Bio: Kem Tekinay is a Macintosh consultant and programmer who started with Xojo when it was still REALbasic. He is the author of RegExRX (http://www.mactechnologies.com/index.php:i?page=downloads#regexrx), the popular regular expression editor for Mac and Windows.
Article Description: No description available.
Article Length (in bytes): 9,575
Starting Page Number: 92
Article Number: 12613
Related Web Link(s):
http://www.mactechnologies.com/index.php
Excerpt of article text...
Regular expressions that go beyond simple searches can sometimes be
(gasp) a little hard to read. I know! But it's true. Fortunately, some techniques can help you to craft a pattern in a readable and, more importantly,maintainable way.Setting The Stage
In a traditional language like Xojo, you have some measure of control over readability. The syntax itself is out of your grasp, to be sure, but you can lay out your code so that it becomes clearer even to the casual observer.
Consider this block of code:
for i as integer=0 to arr.ubound
...End of Excerpt. Please purchase the magazine to read the full article.