|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| Iniciado por guest, 19,jul. 2018 15:38 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 19,julio 2018 - 15:38 |
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 : Quote
{\ tf1\ansi\ansicpg1252\deff0\ ouicompat\deflang1033{\onttbl{\0\nil\charset0 Tahoma;}}
{\colortbl ;\ ed0\green0\lue0;\ ed64\green85\lue141;\ ed0\green30\lue196;}
{\*\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 :https://regex101.com/ , https://www.regextester.com/ , https://regexr.com/ But not in Windev...
Do you have an idea why? Thank you. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 19,julio 2018 - 15:52 |
Hi Wahib,
probably because supported regex expressions in wlanguage are way less advanced than on these web sites.
You can certainly ask the support about the difference in behavior for a definite answer about it.
Best regards |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 34 mensajes |
|
| Publicado el 20,julio 2018 - 14:27 |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|