realbasic-nug
[Top] [All Lists]

Simple RegEx question

To: RB Nug <realbasic-nug at lists dot realsoftware dot com>
Subject: Simple RegEx question
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Tue, 31 Aug 2004 18:03:35 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I have a regEx that I would like to simplify some, and I'm wondering how to go about it.
This is a simplified version of the regex, but it's the right idea:

\d[-+]\d[-+]\d

Matches things like 2+5-1 and 9-0-4.
Could I simplify this to:

([-+])\d\1\d\1\d

\1 refering to the ([-+])

?

Thanks!

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software <http://www.fireyesoftware.com/> Make PDFs from your RB app <http://www.fireyesoftware.com/code/pdfclasses/>
AIM: fireye2005
REALbasic 5.5.3 Mac OS X 10.3.5

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • Simple RegEx question, Asher Dunn <=