Regex capture when searching for a character or paragraph tag?
Is there a way in the Find/Change dialog to search for a character tag, capture the corresponding text and use that text in the Change field?
Is there a way in the Find/Change dialog to search for a character tag, capture the corresponding text and use that text in the Change field?
Ah, I think I misunderstood your original question.
If I've got it right this time, you want to add a prefix and suffix to all text strings tagged with a particular character tag? That explains why you referred to regular expressions in the title of this thread. FrameMaker can use regular expression conventions to add a prefix and suffix to a found string, but only if that string was found by searching for a regular expression. A variation of the complex instructions in my previous suggestion would let you search for the character tag, then search for a regular expression consisting of the string you've already found, and then use regular expression conventions to add the prefix or suffix. Not something that would be very practical to repeat numerous times.
This may be a good candidate for scripting.
--Lynne
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.