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

GREP for replace letter x with multiplication symbol ×

Community Beginner ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

Hi,

I’m looking for a GREP that can replace all instances of the letter x (both lowercase and uppercase) with the symbol of multiplication ×.

 

The occoruncies are something like this:

 

42x58x8cm

39x58x16cm

90x165mm

39X56X19cm

15x8

34X44

54x125x5

 

Thanks in advance

TOPICS
How to

Views

180

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 , Feb 02, 2022 Feb 02, 2022

Try the following

(?i)(?<=\d)x(?=\d)

And replace with *

-Manan

Votes

Translate

Translate
Community Expert ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

Try the following

(?i)(?<=\d)x(?=\d)

And replace with *

-Manan

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 ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

Thanks, it works 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 ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

Replace it with:

\x{00D7}

 

Regards,

Uwe Laubender

( ACP )

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 ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

Hi Uwe,

Any specific reason to use the unicode notation(assuming it translates to multiplication symbol i.e. asterix)

-Manan

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 ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

LATEST

Hi Manan,

it's more obvious for me to use the unicode notation.

So that I cannot confuse the character with a normal "x" when in a hurry.

I even do this for simple blank characters like \x{0020}.

 

Regards,
Uwe Laubender

( ACP )

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