InDesign GREP Style Help
I've used GREP styles on and off, but I struggle to wrap my head around it and I can't find an answer that works for what I'm trying to accomplish...
The document I'm working with has a list of businesses setup like this:
Business Name (em space) Address (em) Phone Number (em) URL (em) Facebook URL (em) Instagram URL (paragraph break)
I use a nested style to make the Business Name bold ("up to 1 em space") and then I have a GREP style to make the URL bold. It works... but it will also bold characters in the Facebook and Insta URLs. I want the style to just apply to the URL and leave the Facebook and Insta alone.
This is my GREP style as it is:
[\l\u\d.]+(.com|.ca)
So anytime the letters "ca" or "com" show up in a Facebook or Insta URL it bolds them as well, plus any letters/digits preceding that.
With each business listing there is an ! in the text right before the Facebook URL—I use another GREP style to recognize the exclamation point and convert it to the typeface Social Shapes and give me a nice little Facebook icon. I've tried to figure out how to stop the GREP match when it encounters an exclamation mark, but this is beyond my skillset. I have no idea how else to make this work...
Can anyone help? TIA
