Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem replace digits using wild cards

Status
Not open for further replies.

WestKaz

Technical User
Feb 19, 2005
16
GB
I need to change full stops to en dashes when they follow numbers. How can I change the full stop to an en dash but keep the number the same? When I use the following search and replace using the Indesign CS2 dialogue, it gives me the en dash, but replaces all the digits with the literal ^9^9 instead of the original number.

search:^9^9.
replace: ^9^9^=
 
WestKatz,

you can use my tool RegExpSearch
as "search criteria" type "([0-9][0-9])(\.)"
click Pre-find - uncheck all unnecessary hits
next, click Find
in Change/Insert tab - type "$1$#@#" (#@# is only temporary string)
next step - replace "#@#" with "^=" in F&R dialog

regards
robin

ps.
script
description

Scripts for AdobeFamily
gg 3753393
Skype: indesignscripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top