Question on advanced search/replace with wildcards

S

sly007

Hi,

I'm trying to figure out a way to search/replace a space with a non
breakable space between words, most of the time singular and sometimes
plural, and any digit following the specific words.

What would be the endind part of the sequence for the search?

Example :

Searching for : "([Pp]aragraphe?) ([0-9])"
Replacing with : "\1^s\2"


[space or no space]paragraphes[space]1.2
[space or no space]Paragraphes[space]3[space]et[space]4
[space or no space]paragraphe[space]1
[space or no space]Paragraphe[space]4.5

I want this result :

paragraphes[non breakable space]1.2
Paragraphes[non breakable space]3[space]et 4
paragraphe[non breakable space]1
Paragraphe[non breakable space]4.5

But it doesn't work!


Thank you in advance for your response
 
P

Pesach Shelnitz

Hi,

Try the following search string.

([Pp]{1}aragraph[es]{1,2}) ([0-9])

It doesn't take care of the problem of the possible space before the string.
You might need a second search with the space to handle it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top