10-03-2017, 05:26 PM
This is my approach. Any comments are welcome.
Member function str.BoldInRichE
Member function str.BoldInRichE
function# ARRAY(str)&ar
;
;---> Comment 03-10-2017 20:11:55 : Find bold in Rich Edit String
;www.quickmacros.com/forum/viewtopic.php?p=33256
ARRAY(str) a; int i
str s=this
str rx
rx="\\[b].+?\\[b^0]"
if findrx(s rx 0 4|8 a)<0 ; ret 0
str st
int n=a.len
;out n
for i 0 n
,st=a[0 i]
,st.trim("\b")
,outt F"{i+1}. {st}"
,ar[]=st
ret n