aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/posixregex.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2012-06-04 13:09:11 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2012-06-04 13:09:11 -0800
commit81dabd10dbe3a48c3eec93a32aaa6c3ec065b86a (patch)
tree37c4e765b49d855425e8d61c156bc812bac67603 /src/posixregex.c
parentfddf0d97c1ee060ea1646a2ade5d2bedbae20130 (diff)
downloaddmstools-81dabd10dbe3a48c3eec93a32aaa6c3ec065b86a.tar.gz
dmstools-81dabd10dbe3a48c3eec93a32aaa6c3ec065b86a.tar.bz2
dmstools-81dabd10dbe3a48c3eec93a32aaa6c3ec065b86a.tar.xz
dmstools-81dabd10dbe3a48c3eec93a32aaa6c3ec065b86a.zip
Updating posixregex example in source comments.
Diffstat (limited to 'src/posixregex.c')
-rw-r--r--src/posixregex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posixregex.c b/src/posixregex.c
index d2ca1ee..ede4470 100644
--- a/src/posixregex.c
+++ b/src/posixregex.c
@@ -73,8 +73,8 @@
73// [:punct:] [-!"#$%&'()*+,./:;<=>?@[\\\]_`{|}~] Punctuation characters 73// [:punct:] [-!"#$%&'()*+,./:;<=>?@[\\\]_`{|}~] Punctuation characters
74// 74//
75// Example Uses: 75// Example Uses:
76// posixregex '^([[:alpha:]]+)://(([[:alnum:]]+)(:([[:alnum:]]+)){0,1}@){0,1}([-.a-z]+)(:([[:digit:]]+))*/([-/[:alnum:]]*)(\?(.*)){0,1}$' http://jdoe:password@www.foo.org:123/path/to/file?query_string 76// posixregex -rv '^([[:alpha:]]+)://(([[:alnum:]]+)(:([[:alnum:]]+)){0,1}@){0,1}([-.a-z]+)(:([[:digit:]]+))*/([-/[:alnum:]]*)(\?(.*)){0,1}$' http://jdoe:password@www.foo.org:123/path/to/file?query_string
77// posixregex '\$([[:digit:]]+)\.([[:digit:]]{2,2})' 'Your change is $7.45.' 77// posixregex -rv '\$([[:digit:]]+)\.([[:digit:]]{2,2})' 'Your change is $7.45.'
78 78
79 79
80/////////////// 80///////////////