Next Making Programs Faster 68

parse_text

     split /([A-Z]  <          # Escape code and open bracket
             (?: <+ \s ) ?     # Possible extended delimiter
            )/x;             
     split /([A-Z]  <          # Escape code and open bracket
             (?: [^<>]* >      # ...and the rest of the escape sequence
               | (?: <+ \s )?  # OR a possible extended delimiter
             ))/x;

Next Copyright © 2003 M. J. Dominus