I have only a crude understanding of RegEx and I'm stumped!
My file is formatted like this:
>>
www.google.com some stuff I don't want
www.yahoo.com
<<section>>
www.bing.com
www.yahoo.com
<<section>>
www.bing.com
https://github.com/zeeshanu/learn-regex
Here are the conditions I am hoping to match:
- only the lines after the first ">>" and before the first "<<" on it
- select only first block of text on each line, no text following whitespace after first text
- ignore any initial white space on line if any
I have been able make this regex to select the part of the line I want:
^([^>>]\s*\S*){1}
But I can't get it to work within the proper strings.