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

GREP to find first instance of a bullet or list

Community Beginner ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

I have searched, for a few hours, but with no luck, I want to search through some bullets and lists and change only the first one of that section:

Normal paragraph text.....

  1. first one <find and change only this
  2. second
  3. third

Normal paragraph text.....

  1. first one <find and change only this
  2. second
  3. third

Is there a GREP code just to find them?

Any help would be great! Many thanks!!

TOPICS
Scripting

Views

1.4K

Translate

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

correct answers 1 Correct answer

Participant , Apr 15, 2017 Apr 15, 2017

Hi try this code;

(?<!\r)^.

grepcode.jpg

Votes

Translate

Translate
Community Beginner ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

Something like this, which finds all but the first: (.+\r)+(?=.)

Votes

Translate

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
Guest
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

(?<!\r).+\r

Votes

Translate

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 ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

Hi, and many thanks editd_design, but this did not seam to work, it found all of them, 1,2,3....

I am trying to find and change the first one of each numbered section only, if you see what I mean.

Votes

Translate

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
LEGEND ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

Hi,

What do you want to change? Para style?

(^/)

Votes

Translate

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 ,
Apr 14, 2017 Apr 14, 2017

Copy link to clipboard

Copied

I am trying to restart the numbering at that point, so was hoping to use GREP, something like this image?Screen Shot 2017-04-15 at 03.47.03.png

Votes

Translate

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
Participant ,
Apr 15, 2017 Apr 15, 2017

Copy link to clipboard

Copied

Hi try this code;

(?<!\r)^.

grepcode.jpg

Votes

Translate

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
LEGEND ,
Apr 15, 2017 Apr 15, 2017

Copy link to clipboard

Copied

Nice way!

(^/) 

Votes

Translate

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 ,
Apr 16, 2017 Apr 16, 2017

Copy link to clipboard

Copied

LATEST

Brilliant one! thank you so much!!

Votes

Translate

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