I have a text file containing a string
<><> name: idontknow <><><> dob: <>
I want to get only the string name and dob, but with the regex, I get <> name and <> <> dob.
The regex sample I used is
(?<=>).*?(?=:)
Any suggestion would be a big help.
source share