Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

GREP Problem…

Return to Member Forum

  • Author
    Posts
    • #64658
      Simon Duckworth
      Participant

      I’m working with supplied text with certain types of the content (ie. titles) wrapped in HTML-esque tags. This is great as I’m hoping to use GREPs to automatically format content. So far so good with formatting the tagged areas, but I’m trying to apply a style to the first para that follows a </h2> tag. So far I’ve managed it with:

      (?<=(</h2>)\r)^.+$

      But… this doesn’t allow for additional spaces in/outside the angled brackets, or capitalisation, it simple fails silently on any of these instances.

      Then I tried
      (?<=(*<*/*[Hh]2*>*)\r)^.+$
      to allow for these permutations, but it’s not working.

      Does anyone know why? I can’t see that I’m using any special characters!

Viewing 0 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads