Need Help with GREP Expression to select any string of character between two words

New Here ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Need help with a GREP expression to select all the characters inbetween a word, and a number. Here is the sample string I'm trying to select (and delete) from a catalog, in every place it appears:

 

RETAIL $109.00  |  WHSL $54.50

 

The dollar values change throughout the catalog, but this string alwasy begins with "RETAIL" and ends with "0"

 

Thanks!

TOPICS
Scripting

Views

73

Likes

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

Advocate , Nov 24, 2021 Nov 24, 2021
^RETAIL.+0$

Likes

Translate

Translate
Advocate ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

^RETAIL.+0$

Likes

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
New Here ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

LATEST

AMAZING! 

 

Thank you for that expression. Worked perfectly!!!

Likes

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
Adobe Community Professional ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

It's not clear what you're looking to do here - what are you trying to delete?

 

A positive lookbehind will find the word RETAIL

(?<=RETAIL).+?\d+\.\d{2}

Should find all the text from RETAIL up to 0 at the end of the first price.

 

Is that what you want?

 

 

 

 

Likes

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