[augeas-devel] augeas: master - Rx: remove \b and \d escapes
David Lutterkort
lutter at fedoraproject.org
Fri Apr 3 23:21:37 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=02a420d6967a95de1aaf2cfd896d2bc846ca90f5
Commit: 02a420d6967a95de1aaf2cfd896d2bc846ca90f5
Parent: 59020805e492a1dce3a2ee536c8028b7fce444de
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Fri Apr 3 16:21:15 2009 -0700
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Apr 3 16:21:15 2009 -0700
Rx: remove \b and \d escapes
---
lenses/rx.aug | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lenses/rx.aug b/lenses/rx.aug
index 6b1457a..3c562e2 100644
--- a/lenses/rx.aug
+++ b/lenses/rx.aug
@@ -44,16 +44,16 @@ let ipv6 =
| /(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})/
| /(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})/
| ( /([0-9A-Fa-f]{1,4}:){6}/
- . /((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}/
- . /(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)/
+ . /((((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))\.){3}/
+ . /(((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))/
)
| ( /([0-9A-Fa-f]{1,4}:){0,5}:/
- . /((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}/
- . /(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)/
+ . /((((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))\.){3}/
+ . /(((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))/
)
| ( /::([0-9A-Fa-f]{1,4}:){0,5}/
- . /((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}/
- . /(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)/
+ . /((((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))\.){3}/
+ . /(((25[0-5])|(1[0-9]{2})|(2[0-4][0-9])|([0-9]{1,2})))/
)
| ( /[0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}/
. /[0-9A-Fa-f]{1,4}/
More information about the augeas-devel
mailing list