[DEPRECATED] Parse an URL rule and return a list of (regex control-string variables). Example: (parse-url-rule "/login") ;;=> ("^\/login$" "/login" NIL) (parse-url-rule "/member/:id") ;;=> ("^\/member\/(.+?)$" "/member/~A" (ID))
MAKE-URL-RULE (URL &KEY (METHOD GET) REGEXP)
Construct `<url-rule>` and return it. You must always use this function when you need `<url-rule>`.
QUOTE-META-CHARS (STRING &KEY (START 0) (END (LENGTH STRING)))
Quote, i.e. prefix with #\\, all non-word characters in STRING.
SCAN-TO-STRINGS (REGEX TARGET-STRING &KEY (START 0) (END (LENGTH TARGET-STRING)) SHAREDP)
Like SCAN but returns substrings of TARGET-STRING instead of positions, i.e. this function returns two values on success: the whole match as a string plus an array of substrings (or NILs) corresponding to the matched registers. If SHAREDP is true, the substrings may share structure with TARGET-STRING.
SPLIT (REGEX TARGET-STRING &KEY (START 0) (END (LENGTH TARGET-STRING)) LIMIT WITH-REGISTERS-P OMIT-UNMATCHED-P SHAREDP)
Matches REGEX against TARGET-STRING as often as possible and returns a list of the substrings between the matches. If WITH-REGISTERS-P is true, substrings corresponding to matched registers are inserted into the list as well. If OMIT-UNMATCHED-P is true, unmatched registers will simply be left out, otherwise they will show up as NIL. LIMIT limits the number of elements returned - registers aren't counted. If LIMIT is NIL (or 0 which is equivalent), trailing empty strings are removed from the result list. If REGEX matches an empty string the scan is continued one position behind this match. If SHAREDP is true, the substrings may share structure with TARGET-STRING.
DEFROUTES (NAME &BODY ROUTES &AUX (OTHERWISE (LAST ROUTES)))
DOC (DOCSTRING DEFINITION-FORM)
Add DOCSTRING documentation for DEFINITION-FORM.
WITH-GENSYMS (NAMES &BODY FORMS)
Binds each variable named by a symbol in NAMES to a unique symbol around FORMS. Each of NAMES must either be either a symbol, or of the form: (symbol string-designator) Bare symbols appearing in NAMES are equivalent to: (symbol symbol) The string-designator is used as the argument to GENSYM when constructing the unique symbol the named variable will be bound to.