Match problem

Hi,
I want to get the same parts of a text. For example my text is:

HomeABC
HomeABC

And I want to get this part of the text:
HomeABC

For this I used this Match expression:
Home(.+)<span class=(.+)success">ABC

And the result is:
HomeABC

HomeABC

I want to get from second ‘Home’ not first Home.
Please help me.

Hi @Hulya_Cetinkaya

How about this expression

System.Text.RegularExpressions.Regex.Match(YourString,"(?<=HomeABC\n)(\S+)").Tostring

Regards
Gokul

Can you share some sample text with us @Hulya_Cetinkaya

I have written this with HTML but when I sent, only text part seems sorry :frowning:

hI @Hulya_Cetinkaya

Can you share the exact input?

Regards
Sudharsan

For example text is:

Name=“Michael” Surname=“Jackson” Home Address=“abcdef” Name=“Michael” Surname=“Jackson” Home Address=“ghijkl” Name=“Janet” Surname=“Jackson” Home Address=“abcdef”

I want to get this:
Name=“Janet” Surname=“Jackson” Home Address=“abcdef”

My expression: Name(.+)Address=“abcdef”

But this expression results me this:
Name=“Michael” Surname=“Jackson” Home Address=“abcdef” Name=“Michael” Surname=“Jackson” Home Address=“ghijkl” Name=“Janet” Surname=“Jackson” Home Address=“abcdef”

HI @Hulya_Cetinkaya

How about this expression?

System.Text.RegularExpressions.Regex.Match(YourString,"(?=Name).*(?=Name)(\S.+)").Groups(1)

Regards
Gokul