Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

grep style to be applied before tab

Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

How can I get a grep style to be applied before the tab spacing?

TOPICS
How to

Views

337
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Wee need more information on the actual structure of the text to know for sure, but I suspect you don't actrually need a GREP style for this and an ordianry Nested Style applied up to one tab would be better.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

I'm trying to get all ing and amounts before the tab in bold
[image: image.png]

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

You need to come back to the fiorum to attach your image. Email replies don't work.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

hendy_5450_0-1740997990592.pngexpand image

w

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

It would help to see the non-printing characters, but it can certainly be done with nested styles.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Use this

^.+?\t

as grep style and everything before a tab gets bold.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Grep styles are less efficient than nested styles and should be avoided when unnecessary.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Oke than a nested style

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

but only the numbers get bold

the '1Tbsp' did not.

 

hendy_5450_0-1741021560616.pngexpand image

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

For me it is working!

Between the number and the tekst is that a tab or a space?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

a tab.
it's working for all, bot not the the '1 Tbsp.'

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

LATEST

Remove the space before the first tab

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Could you Show Hidden Characters on that one line that doesn't work? Maybe it has no tab in it?

Mike Witherell

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Could also be a soft return on the line above...

Please show hidden characters in ALL your screen shots.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Soft return does not matter

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Soft returns do not create a new paragraph, so the count in the nested style (or a GREP style) does not reset. I have no idea why your text is showing bold after the soft return. It should not be unless something else is at work.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

hendy_5450_0-1741022946767.pngexpand image

it did work for the next one though

hendy_5450_0-1741023091820.pngexpand image

 

 

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

remove the 3 spaces before the 1

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Or use the nested style, but than you cannot use soft return.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

If the nested style is set properly to trigger on the second tab then the spaces are not an issue, though they should be removed as sloppy typesetting.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

yes.
it worked now.
thanks all

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

Or use this grep

.+\t

than the space does not matter

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

quote

Or use this grep

.+\t

than the space does not matter


By Richard-Elburg-Smit

It works in the case where there are only two tabs on the line, but not if there is another tab following text you don't want bolded.

In this case I think .+\t?\K.+\t? would be safer fro applying a style through two tabs.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 03, 2025 Mar 03, 2025

Copy link to clipboard

Copied

quote

hendy_5450_0-1741022946767.pngexpand image

it did work for the next one though

hendy_5450_0-1741023091820.pngexpand image

 

 


By hendy_5450

Well, it shouldn't have. You have a tab starting each line, so you need to apply the bold style up to (or through) TWO tabs.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines