Reply To: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE

Home Page / Forums / General InDesign Topics (CLOSED) / GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE / Reply To: GREP Tricks: Using LookBehind and LookAhead expressions to convert a SPACE into a NON-BREAK SPACE

#14323378
Sadik Erd
Member

Hi,
I have a question about similar issue if this form alive :)

I’m trying to use positive lookahead for get the words. Here is my base;
Name1 surname1, name2 surname2, name3 surname3*, name4 surname4.

Now i want to get “name3 surname3″ only. (Before *)

I used this => (?<=(,))(.*?)(?=[*])

But it doesn’t work. It returns ” name2 surname2, name3 surname3″

Can somebody help me, please?

This article was last modified on December 26, 2019

Comments (0)

Loading comments...