I have the following question. I would like to extract everything that is between two identical key words on the same line. The input from which the data is extracted is however multiline. I
For example:
Dear customer,
Thank you for choosing xxx. We are happy to present to you this fillable form. xxxxxxxxxxxxxxxxxx
Name: john doe Name: Elisabeth Taylor
In this case i would like to extract the names John Doe and Elizabeth Taylor. Can someone please help me with the Regex for this.
And what if for example i would like to extract only John Doe (and the name of the other person isnt filled in) and what if i only want to extract elizabeth taylor (when the name John doe isnt filled in). How would the Regex look like in those cases?
@Matthewvz - Please share the exact text , i.e add the tax withheld to the original text and share one final text with us…
And provide the clear requirement which would help us in providing a good solution without going backndforth, because you didn’t mention anywhere in your original query about these…