GREP help for social media name formatting

Learn / Forums / General InDesign Topics / GREP help for social media name formatting

Viewing 2 reply threads
  • Author
    Posts
    • #1256319
      Richard S
      Member

      Hi guys, I’ve been trying to get my head around this, but I just can’t seem to get the hang of GREP. I’m looking to apply a character style to social media pages, hashtags etc. So anything that looks like this:

      #example
      @example
      /example

      The furthest I’ve got is to get it to apply it to the #, @ and /, and the first letter after it, but not the whole word by doing [#]\w, to use the hashtag as an example. I have absolutely no idea where I’m going wrong or where to go next with it, so any help would be greatly received!

    • #1253203
      Aaron Troia
      Participant

      Hey Richard,

      You are actually pretty close, just need to add a modifier to make the expression more greedy. You could try something like this, which should find all of your examples.

      [@/#]\w+

      Aaron

    • #1253293
      Richard S
      Member

      Aaron, Sir, you are a gent, that’s a massive help. I can’t believe I was so close! And thank you for wrapping it all up in one string, very elegant.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>