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

Complicated Find and Replace

Participant ,
Sep 19, 2018 Sep 19, 2018

     Hey there guys,

I want to find a text and replace its style, which is simple, but I want to add tab space (>>) in the end, in addition to the replacement of style,

Is that possible?

495
Translate
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

correct answers 1 Correct answer

Community Expert , Sep 19, 2018 Sep 19, 2018

In the GREP tab of the Find/Change dialog:

Find what: (.)$

Find format: a paragraph style

Change to: $1\t (>>)

Change format: the other paragraph style

This is assuming that by 'style' you mean 'paragraph style'.

Translate
Community Expert ,
Sep 19, 2018 Sep 19, 2018

In the GREP tab of the Find/Change dialog:

Find what: (.)$

Find format: a paragraph style

Change to: $1\t (>>)

Change format: the other paragraph style

This is assuming that by 'style' you mean 'paragraph style'.

Translate
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
Participant ,
Sep 19, 2018 Sep 19, 2018

Thanks a lot Peter Kahrel,

The problem is it doesn't work...

But it worked when I did:

find: ^p

change to: ^t

Translate
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 ,
Sep 19, 2018 Sep 19, 2018

If ^p works then you're doing it in the Text tab. You should use the Grep tab.

As Uwe mentioned elsewhere, stay away from the paragraph mark (^p).

And you replace ^p with ^t, in other words, you combine two paragraphs.

Translate
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
Participant ,
Sep 19, 2018 Sep 19, 2018
LATEST

oh, now I saw you wrote in the GREP tab, that's why it didn't work....

Translate
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