Skip to main content
Participating Frequently
April 3, 2023
Answered

Adding a space between names

  • April 3, 2023
  • 1 reply
  • 328 views

I have an index that whoever generated it has the names with the middle and Last names connected. 

Example:
John, SmithBob
Jane, DoeA.

I have in Find/change in GREP \w+\u+ being able to select the problem areas however I am lost as to how to inject a space.

This topic has been closed for replies.
Correct answer Robert at ID-Tasker

I'm not a GREP expert and I'm replying from my phone so can't check but maybe this will work:

 

Find: (\u+\w+)(\u+\w+)

 

Change: $1 $2

 

There is a space between $1 and $2.

 

1 reply

Robert at ID-Tasker
Robert at ID-TaskerCorrect answer
Legend
April 3, 2023

I'm not a GREP expert and I'm replying from my phone so can't check but maybe this will work:

 

Find: (\u+\w+)(\u+\w+)

 

Change: $1 $2

 

There is a space between $1 and $2.

 

FRIdNGE
April 3, 2023

Find: \l\K\u

Replace by:  $0

 

(^/)  The Jedi