Last active
December 19, 2015 11:19
-
-
Save PuercoPop/5946671 to your computer and use it in GitHub Desktop.
Improving with Bike's suggestion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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