Hi, @david-l, @mark-olson and All,
@david-l, I do not understand !
The second part of my regex, AFTER the alternation symbol ( | ) was :
SEARCH (?<=<text>).+(?=</text>\R(?:.+\R){3}\h*<color)
That I, now, improved as :
SEARCH (?-is)(?<=<text>).+(?=</text>\R(?:.+\R){3}\h*<color value="255,255,255"/>)
and these both regexes just match the string 400, against the INPUT text below, not more :
<value>
<text>400</text>
</value>
<font size="8pt" typeface="Helvetica" baselineShift="0pt" weight="bold">
<fill>
<color value="255,255,255"/>
</fill>
So what ?
Now, @david-l, in your first post, you said :
Also, I’d like the expression copy what is inside
<text name=“title”>Find and copy me</text>
This was considered in the first part of my regex :
SEARCH / MARK <text name=.+>\K.+(?=</text>) which does find the string Find and copy me only, against the INPUT text, below :
<text name="title">Find and copy me</text>
Now, may be it’s because i’m not fluent with the HYML language but, in your second post, you said :
So, my idea was to search for all code that make a box black
<fill>
<color value="255,255,255"/>
</fill>
And, obviously, the color referenced is the white color ! So what ?
Sorry, I’m a bit lost !!
BR
guy038