use regexp

svn: r4930
This commit is contained in:
Eli Barzilay 2006-11-23 04:34:12 +00:00
parent 2a4c258bef
commit c6a0983954

View File

@ -336,7 +336,7 @@
(let ([l (read-line)])
(or (and (string? l)
(let ([m (regexp-match
(format "nameserver[ ~a]+([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)" #\tab)
#rx"nameserver[ \t]+([0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)"
l)])
(and m (cadr m))))
(and (not (eof-object? l))