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

Repeat +?etc in lookaheads and lookbehinds

Return to Member Forum

  • Author
    Posts
    • #53929
      Anonymous
      Inactive

      I was at Lynda.com and I just watched “dynamically fixing orphaned words with GREP by Michael …something, sorry. in it, he uses the term (?<=ws(?+w+[[:punct:]]+$). In an earlier course he described the + (one or more) modifier as unusable in a lookbehind or lookahead i.e. (?<=.+). what's the difference here?

    • #53936

      Hello

      Are you sure about the regular expression ? I think it is (?<=w)s(?=w+[[:punct:]]+$)

      In a lookbehind, the string must have the same length, i.e. the same number of characters. You can't use + * or ?

      ex : (?<=figs?)d is impossible (matche a digit preceded by fig or figs)

      There is no limitation in a lookahead.

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