Skip to content
Snippets Groups Projects
Select Git revision
  • 9b18811951a8a9fff712b300fb481a16c8e61ac4
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

ure.rst

Blame
  • ure.rst 1.54 KiB

    :mod:`ure` -- regular expressions

    This module implements regular expression operations. Regular expression syntax supported is a subset of CPython re module (and actually is a subset of POSIX extended regular expressions).

    Supported operators are:

    '.'
    Match any character.
    '[]'
    Match set of characters. Individual characters and ranges are supported.

    '^'

    '$'

    '?'

    '*'

    '+'

    '??'

    '*?'

    '+?'

    Counted repetitions ({m,n}), more advanced assertions, named groups, etc. are not supported.

    Functions

    Regex objects

    Compiled regular expression. Instances of this class are created using ure.compile().

    Match objects

    Match objects as returned by match() and search() methods.