Tharwat Posted May 5, 2020 Posted May 5, 2020 2 minutes ago, carmelo said: Now is perfect! wow...you didn't stop until you totally solved the problem! You are a great men Thank you very much Excellent, you are welcome anytime. 1 Quote
ronjonp Posted May 5, 2020 Posted May 5, 2020 @Tharwat Perhaps a bit simpler? ( based on example drawing ) (defun cmts (str) (if (and (wcmatch str "*{*;*}") (setq str (substr str (+ 2 (vl-string-position (ascii ";") str 0 t)))) ) (substr str 1 (vl-string-position (ascii "}") str)) str ) ) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.