Tharwat Posted May 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
ronjonp Posted May 5, 2020 Share 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 Link to comment Share on other sites More sharing options...
Tharwat Posted May 5, 2020 Share Posted May 5, 2020 @ronjonp That is an excellent approach indeed. Quote Link to comment Share on other sites More sharing options...
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.