Copy link to clipboard
Copied
Voila!!!
The first GREP style: (\w+\tIP\tH\tR\tER\tBB\tSO\tERA)
The second GERP style: (\w+\tIP\tH\tR\tER\tBB\tSO\tERA)\K|([\w+,\t ]|[\d+\-\t]|[\d+.\t])
I happened upon regexr.com and I was off to the races.
Copy link to clipboard
Copied
That’s possible in a number of ways, but you should provide more details, I think.
If you have exactly what we see: always a separate text story where we need to catch always the last paragraph, this one will work: [^\r]+\Z
If not, please elaborate.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This is the result when I apply that GREP style. The GREP style above calls a bold character style that holds an underline and a baseline shift of -2 pt. Then it is back to roman and a baseline shift of -3 pt trying to find the rest of the pitching lines.
Copy link to clipboard
Copied
IMO, you shouldn't bother with baseline shift in a such layout. Take time to fix your styles: return baseline shift back to normal, adjust leading and space before/after. I'd also use Paragraph rules instead underline.
EDIT: and don't use Char style for the whole paragraph, it's a no-no, too…
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Well, this one will find paras with one tab ^([^\t\r]+\t)[^\t]+$ this one with two ^([^\t\r]+\t){2}[^\t]+$ with three ^([^\t\r]+\t){3}[^\t]+$ with four ^([^\t\r]+\t){4}[^\t]+$ and so on (just change the number between curly brackets).
Copy link to clipboard
Copied
I went down this road now, then stalled.
^([.+\d+\t]{7}[\d+/.\d+\r])
Any number of characters followed by a digit followed by a tab {7 times} leaves me with the ERA to affect. Any number of digits followed by a period followed by any number of digits followed by a return.
Two implicit statements grouped -- nothing. I had things moving after the first statement. But adding the last part blew it out.
Here is a screenshot of the code nearly working, knocking out the rule above. Will have to escape that somehow.
Copy link to clipboard
Copied
Voila!!!
The first GREP style: (\w+\tIP\tH\tR\tER\tBB\tSO\tERA)
The second GERP style: (\w+\tIP\tH\tR\tER\tBB\tSO\tERA)\K|([\w+,\t ]|[\d+\-\t]|[\d+.\t])
I happened upon regexr.com and I was off to the races.