Reply To: GREP Styles Help

#1239959
Aaron Troia
Participant

Hey Stan,

Unfortunately you cannot add/remove with GREP styling, you can only apply a styles. You would need to GREP the content to match with Find/Change first.

You could run two GREP searches with Find/Change, the first to format everything but the price,
Find: ^\*(\d+)\*(\d+)\* ([^0]+)(\d+ R)
Change: $1 $2 $3$4

and the second one to convert the number string followed by the R to a price
Find: 0+(\d)(\d+) R
Change: $$1.$2

These should work they were based on the example you gave, but let me know if they need some tweaking. Just to be safe I would run a test with these in a copy of your document first.

Aaron

This article was last modified on April 22, 2020

Comments (0)

Loading comments...