We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like to have a register-group-bind like macro for replacing all the regex occurrences in a string.
It would be something like:
replace-register-groups var-list (regex target-string &key start end sharedp) declaration* statement* => result*
where result* is the replacement of regex matching in target-string with the result of statement*
Does this make sense? I looked for something like this for one of my tasks, but I couldn't find it, apart from regex-replace-all
The text was updated successfully, but these errors were encountered:
Example:
(regex-replace-all "@emph{(.*?)}" "@emph{this} is @emph{emphasized}" (lambda (match text) (format nil "\\emph{~A}" text)) :simple-calls t)
Would be equivalent to:
(register-groups-replace (text) ("@emph{(.*?)}" "@emph{this} is @emph{emphasized}") (format nil "\\emph{~A}" text))
Sorry, something went wrong.
Ok, I could write that macro, but well...just an idea, may make sense to be part of the api, I don't know.
No branches or pull requests
I would like to have a register-group-bind like macro for replacing all the regex occurrences in a string.
It would be something like:
replace-register-groups var-list (regex target-string &key start end sharedp) declaration* statement* => result*
where result* is the replacement of regex matching in target-string with the result of statement*
Does this make sense? I looked for something like this for one of my tasks, but I couldn't find it, apart from regex-replace-all
The text was updated successfully, but these errors were encountered: