topic.name = topic.name.replace(/LSPM /g, "LSPM\u00a0");
topic.sortOrder = topic.sortOrder.replace(/LSPM /g, "LSPM\u00a0");
> What am I doing wrong? Or, better, what should I use instead?
Quoting you excellent book
By Peter Kahrel
Copyright © 2009 O’Reilly Media, Inc.
GREP (short for “General Regular-
Just being picky to plug you book. GREP in InDesign - O'Reilly Media
It worked perfectly! I can't tell you why that code worked, but it worked perfectly for all four of my sets that needed changing (HIP, GJ, LSPM, and 2MASS).
I already did an S&R on the main text so any new entries will already have that pesky non-breaking space.
Thank you very much for your prompt and accurate answer!
Hi Trevor -- Thanks for the plug -- be as picky as you want! (GREP and regular expression are really virtually interchangeable these days.)