
Originally Posted by
pawel-l
I want to split text obtained from multitext.
It looks like that "aa\Pbb"
Lines are separated with "\P"
But "wcmatch" doesn't see it. I can't use "substr" also. How to obtain each part of multiline text?
This works:
Code:
(setq sel (entsel "\nSelect: "))
(setq ent (car sel))
(setq lst (entget ent))
(setq str (cdr (assoc 1 lst)))
(vl-string-search "\\P" str)
You'll have to put that last line in a loop to catch subsequent returns. Also be aware that for MTEXT strings longer than 250 characters, additional text is stored in group 3 entries (as many as needed)