Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 12.6 ('Cheap Web App Hosting')
Instant purchase and download via GumRoad!

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.