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

Find and replace treating . like a wildcard

Enthusiast ,
Jul 30, 2021 Jul 30, 2021

Copy link to clipboard

Copied

I'm trying to search for [. . .] and replace with [ . . .] (just add a space in front of the first dot), and ID has decided that . is a wildcard, so it's finding things like this:

 

Screenshot 2021-07-30 19.31.09.png

 

I've restarted the program to no avail. Any other ideas?

TOPICS
Bug

Views

449

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 2 Correct answers

Community Expert , Jul 30, 2021 Jul 30, 2021

You're in the GREP section of Find/Replace, and you want to be in the Text section.

 

JoelCherney_0-1627709483901.png

 

Votes

Translate

Translate
Community Expert , Jul 31, 2021 Jul 31, 2021

@Joel Cherney is correct

You are in the GREP portion of the search function.

Switching to the Text search is what you need. 

 

For the record - for GREP it is finding regular expressions and period is a wildcard.

You're searching for

. . .

Which is finding [any character][space][any character][space][any character]

Which is why you're finding what you're finding

If you need to find an actual Period (the .]

Then the expression would be 

Find

\. \. \.

Replace with

 $0

 

That will find the [period]

...

Votes

Translate

Translate
Community Expert ,
Jul 30, 2021 Jul 30, 2021

Copy link to clipboard

Copied

You're in the GREP section of Find/Replace, and you want to be in the Text section.

 

JoelCherney_0-1627709483901.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
Community Expert ,
Jul 30, 2021 Jul 30, 2021

Copy link to clipboard

Copied

I mean, maaaaaybe you do want to be in the GREP  section. It's a fabulously powerful tool, and has far more flexibility than the ordinary search. But if you want to find something right now, then you probably don't want to stop and learn about how amazing this new tool is. There's a bit of a learning curve involved.

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
Enthusiast ,
Jul 31, 2021 Jul 31, 2021

Copy link to clipboard

Copied

LATEST

Ahhh! Thank you!

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 ,
Jul 31, 2021 Jul 31, 2021

Copy link to clipboard

Copied

@Joel Cherney is correct

You are in the GREP portion of the search function.

Switching to the Text search is what you need. 

 

For the record - for GREP it is finding regular expressions and period is a wildcard.

You're searching for

. . .

Which is finding [any character][space][any character][space][any character]

Which is why you're finding what you're finding

If you need to find an actual Period (the .]

Then the expression would be 

Find

\. \. \.

Replace with

 $0

 

That will find the [period][space][period][space][period]

And replace with

[space][found text]

(where $0= found text]

 

 

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