Skip to main content
Participating Frequently
July 20, 2023
Question

Need help with GREP

  • July 20, 2023
  • 2 replies
  • 1007 views

Hi All,

I had a issue while using GREP, While replacing the manual bulleted paragraph to bullet styled paragraph,

I have used the below:

Find What:

^ ·\t(.+)$

Change to:

$1

Change Format: 

Main_Txt_Bullets (paragraph style)

When I replace by option "change" one by one all the instances change clearly

While using "change All" option, the initial letter of roman word followed by italic word changes to italics.

Kindly help me to rectify & suggest me what went wrong?

Screenshots below steps:

 

 

This topic has been closed for replies.

2 replies

Community Expert
July 23, 2023

I think there's a oddity with this that I've noticed before, it's somehow capturing the italic style

You don't need all this

^ ·\t(.+)$

 

You just need

^ ·\t

 

 

Participating Frequently
July 23, 2023

Hi Tyson,

I planned to do both style replace & remove the "manual bullet with tab" at once, that's the reason, to used the expression.

If, I proceed change one by one it replaces clearly, It happens when i used change all option only.

 

Rajesh George  

Community Expert
July 24, 2023

Yes, it is definitely doing something odd. It's like by removing two characters (the manual bullet and the tab) the character style 'italic' has been shifted by two characters. You can also see the the word 'bison' at the start of the italic text has lost the italic format on the first two letters.


Yeh noticed that too - if you make the space before the italic, after the : . Then do the find replace all - it changes back to a regular font and only 1 letter of the italic.

So by removing 2 characters the italics is shifting per character.

 

Which has to be a bug.

 

I've never noticed this because I always do 2 step find and replace - find to add the paragraph style of just the bullet tab and apply the style.

Then find replace to remove the bullet and the tab.

 

It's strange behaviour.

Community Expert
July 21, 2023

Can you share a sample InDesign document to test with

-Manan

Participating Frequently
July 23, 2023

Hi Manan,

Extremely Sorry for the late response!

Find the idml file attached.

RajeshGeorge

Community Expert
July 23, 2023

There is no file attached

-Manan