I know there are many examples of a non-greedy regex with grep, but I'm having problems with my specific case.
My file contains lines similar to:
and I'm trying to parse out just the
That is, the part starting with
X and up until the first period (
My closest example so far is:
grep -Eo "X(.*?)\." inputfile
But that is too greedy (even though I think I used
Can someone help guide me to a proper regex?