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

Search for "no space" before / after word?

Advocate ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

Howdy-

I'm trying to find a way to search for a "lack" of a space-

 

For example, I have received a document in which each period has been replaced with a double hash (##).

Some also have the space after deleted, so what I have can look like this:

 

...went to the school on Thursday## Burritos were the main thing....

or

...went to the school on Thursday##Burritos were the main thing....

 

Is there a way to search for "##" without a space before or after?

Was hoping to find a symbol, but alas...

thanks!

TOPICS
How to

Views

442

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 , Aug 05, 2020 Aug 05, 2020

You can use GREP to search for a not-a-space character with the code \S (the inverse of \s – "any whitespace"). But what do you want to do next?

 

If tepkace with full-stop plus a space: You can use a more complicated GREP (because it must preserve whatever character is there) but it may be easier to just change ## to full-stop * space, and then replace all double spaces with one.

Votes

Translate

Translate
Community Expert ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

You can use GREP to search for a not-a-space character with the code \S (the inverse of \s – "any whitespace"). But what do you want to do next?

 

If tepkace with full-stop plus a space: You can use a more complicated GREP (because it must preserve whatever character is there) but it may be easier to just change ## to full-stop * space, and then replace all double spaces with one.

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
Advocate ,
Aug 05, 2020 Aug 05, 2020

Copy link to clipboard

Copied

LATEST

Thanks! I just want to replace with a space.

Would be great if you could script a more complex find/replace, like actions work in other Adobe stuff.

I guess maybe you can, but I don't know much about GREP.

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