Reply To: Repeat +?etc in lookaheads and lookbehinds

Home Page / Forums / General InDesign Topics (CLOSED) / Repeat +?etc in lookaheads and lookbehinds / Reply To: Repeat +?etc in lookaheads and lookbehinds

#50875

Hello

Are you sure about the regular expression ? I think it is (?<=\w)(?=\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.

This article was last modified on November 24, 2009

Comments (0)

Loading comments...