class_docstr: Synchronize by starting at a line that matches the given regex pattern.
code: def __init__(self, pattern):
      assert isinstance(pattern, six.text_type)
      self._compiled_pattern = re.compile(pattern)
  
imports: from __future__ import unicode_literals
  from abc import ABCMeta, abstractmethod
  from six import with_metaclass
  from six.moves import range
  from prompt_toolkit.token import Token
  from prompt_toolkit.filters import to_cli_filter
  from .utils import split_lines
  import re
  import six
label_desc: Use image node_id 1 to create a new RegexSync object from inherited base classes: SyntaxSync with example: obj = RegexSync(pattern)