RegEx Builder yellow match

Hi ,
all regex testers return 1 match :
https://regexr.com/4advf
https://rextester.com/tester/HAAUO64774 ,
but RegEx Builder return ZERO

can someone help me with a solution?
Thanks !
George

1 Like

can you show me a screenshot of what you can see on an online builder, to understand the difference.
ah, got it.
why are you saying that we don`t match anything? :slight_smile:

1 Like

Salut Gabriel ,
I change the pattern :


Is Match return False

1 Like

first screenshot was correct, it matched properly your text - gray and yellow highlight combined (it means that you had a group inside and the highlight separated them)
for the second one, well…i see a match (gray) but its a little different from what you receive from the online tool, right?

also, don`t use expression in Literal, use Advance type

1 Like

in all pattern variants the result of IsMatch is the same : False

i tried and with Advance type :

1 Like

Hi, i am facing similar issue. Any solution?

if you try to match text between 2 rows try this :

Regex.Match(all_page,"("+start+"[\s*\r\n])([\w\W]+)("+final+")",RegexOptions.Multiline).Groups(2).ToString

where :
all_page - string variable
start - string variable ex “Header text row”
final - string variable ex “Footer text row”