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

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

163

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

Community Expert , Nov 24, 2021 Nov 24, 2021
^RETAIL.+0$

Votes

Translate

Translate
Community Expert ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

^RETAIL.+0$

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

Copy link to clipboard

Copied

LATEST

AMAZING! 

 

Thank you for that expression. Worked perfectly!!!

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 Expert ,
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?

 

 

 

 

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