Skip to content

Instantly share code, notes, and snippets.

@PuercoPop
Last active December 19, 2015 11:19
Show Gist options
  • Save PuercoPop/5946671 to your computer and use it in GitHub Desktop.
Save PuercoPop/5946671 to your computer and use it in GitHub Desktop.
Improving with Bike's suggestion
(defun between-quotes (str)
(let* ((first-quote (1+ (position #\' str))) ; We want the char after first-quote
(second-quote (position #\' str :start first-quote)))
(subseq str first-quote second-quote)))
(between-quotes "PDV_n7215679='d6ad8e8a94|1124';PD_vote7215679(0);")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment