Hello,
I'm having a hard time with regex.
I need to isolate parts with a certain color in a RTF field.
Here is my source :
Here is my regex :
(?<=\\cf[13] ).*?(?=\\cf.)
It's working just fine on those sites :[regex101.com] , [www.regextester.com] , [regexr.com]
But not in Windev...
Do you have an idea why?
Thank you.
I'm having a hard time with regex.
I need to isolate parts with a certain color in a RTF field.
Here is my source :
Quote
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Tahoma;}}
{\colortbl ;\red0\green0\blue0;\red64\green85\blue141;\red0\green30\blue196;}
{\*\generator Riched20 10.0.17134}\viewkind4\uc1
\pard\cf1 Elem1\cf2 Hello \cf3 Elem2\par
2nd Liane : \cf3 Elem3\cf2\par
\cf3 Elem4\cf2 3rd\cf3 Elem5\cf2 Line : \cf3 Elem6\cf2\par
4th Line : \cf1 Elem7\cf0\par
}
Here is my regex :
(?<=\\cf[13] ).*?(?=\\cf.)
It's working just fine on those sites :[regex101.com] , [www.regextester.com] , [regexr.com]
But not in Windev...
Do you have an idea why?
Thank you.