RegEx help with search

This is my text

Birthday
I was walking around and played ball.
Happy

I will search on the name"Birthday"(?<=Birthday)
But the rest of the code to just get “Happy”. I dont know.

Hi
So you need this string as a output and does it always lies between a birthday and Happy
Cheers @Anders_Dahl

Hi
In this case it does.

I am extracting data from a PDF. And there are values inn diffrent places. So i have many solutions.

You have helping me alot my friend :slight_smile:

Cheers @Palaniyappan

1 Like

Hi,

The following might help you.

System.Text.RegularExpressions.Regex.Match(strData,"(?<=Birthday\r?\n.*\r?\n).*").Value

Regards,

I dont know how i will solve this.

Need your help out there.

I use Matches to finde my values.

When i read the pdf i after that i have a message box. when the text shows in that message box it look like this
2039
1985
TT
Text, Text text Text
Birthday City Home! I am happy and i know it.
Jämtland Östersund

And the i have a text file where i have written the pdf to, the it look like this.

2039
1985
TT
Text, Text text Text
Birthday
City Home! I am happy and i know it.
Jämtland Östersund

I have tried al the diffrent code you have send to me. i have try the in diffrent regex sites.

/Anders