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>
|