This issue has been bugging me for a while and I've just always worked around it. I've found a work around that accomplishes it in a backward way, but I was hoping some grep experts could help me out with language to make it cleaner and more direct.
I have spreadsheet data that I develop styles to display automatically in specific contexts. In this case I have product data with specific tab and text styles, and then headers.
My goal is to have the spreadsheet pasted in the "Data" paragraph style, then have GREP styles within that change the headers to a Header (bold) character style (which I then do a find>change character style to convert to a paragraph style to center justification).
Aside from listing out all the header titles in individual GREP styles, I can't figure out the language that would convert any line without tabs in it. I've tried using the "end of paragraph" options, things like ^.+$ (beginning of paragraph>any amount of characters>end of paragraph), but it counts tabs as characters I guess. My brain has just fried itself trying to figure it out, so internets, anyone see through the matrix code?
Thanks a ton, I hope this makes sense
I think I'd add some otherwise unused symbol as a marker after the headers in the spread sheet.
If I understand well, try this to select a paragraph without Tab and apply a paragraph style to it.
Replace by format: your paragraph style
You can also apply the "header style" to all the para, and then:
Replace by format: the other current style.