Index of Module pregexp
mgorges edited this page Oct 16, 2014
·
1 revision
Module: pregexp
The pregexp
module contains Dorai Sitaram's portable library for regular expressions. Please refer to http://www.ccs.neu.edu/home/dorai/pregexp/ for instructions on use. The functions in the module are listed below with relative links into the pregexp API documention:
Function |
---|
pregexp |
pregexp‑match‑positions |
pregexp‑match |
pregexp‑split |
pregexp‑replace |
pregexp‑replace* |
pregexp‑quote |
Example from modules/sanestring/sanestring.scm to check a date following the ISO format
(define (sanestring-dob s)
(let* ((yyyy "(?x: 19[1-9][0-9] | 20[0-9][0-9] )")
(mm "(?x: 0[0-9] | 1[0-2] )")
(dd "(?x: [0-2][0-9] | 3[0-1] )")
(dob (string-append "^" yyyy "\\-" mm "\\-" dd "$")))
(pregexp-match dob s)
))
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip