org.python.modules
Class re

java.lang.Object
  extended byorg.python.modules.re
All Implemented Interfaces:
ClassDictInit

public class re
extends Object
implements ClassDictInit


Field Summary
static String[] __all__
           
static PyObject error
           
 
Constructor Summary
re()
           
 
Method Summary
static void classDictInit(PyObject dict)
           
static RegexObject compile(String pattern)
           
static RegexObject compile(String pattern, int flags)
           
static String escape(String s)
           
static PyList findall(PyObject pattern, String string)
           
static MatchObject match(String pattern, String string)
           
static MatchObject match(String pattern, String string, int flags)
           
static PyException ReError(String message)
           
static MatchObject search(String pattern, String string)
           
static MatchObject search(String pattern, String string, int flags)
           
static PyList split(PyObject pattern, String string)
           
static PyList split(PyObject pattern, String string, int maxsplit)
           
static PyString sub(PyObject pattern, PyObject repl, String string)
           
static PyString sub(PyObject pattern, PyObject repl, String string, int count)
           
static PyTuple subn(PyObject pattern, PyObject repl, String string)
           
static PyTuple subn(PyObject pattern, PyObject repl, String string, int count)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__all__

public static String[] __all__

error

public static PyObject error
Constructor Detail

re

public re()
Method Detail

ReError

public static PyException ReError(String message)

classDictInit

public static void classDictInit(PyObject dict)

match

public static MatchObject match(String pattern,
                                String string)

match

public static MatchObject match(String pattern,
                                String string,
                                int flags)

search

public static MatchObject search(String pattern,
                                 String string)

search

public static MatchObject search(String pattern,
                                 String string,
                                 int flags)

sub

public static PyString sub(PyObject pattern,
                           PyObject repl,
                           String string)

sub

public static PyString sub(PyObject pattern,
                           PyObject repl,
                           String string,
                           int count)

subn

public static PyTuple subn(PyObject pattern,
                           PyObject repl,
                           String string)

subn

public static PyTuple subn(PyObject pattern,
                           PyObject repl,
                           String string,
                           int count)

split

public static PyList split(PyObject pattern,
                           String string)

split

public static PyList split(PyObject pattern,
                           String string,
                           int maxsplit)

findall

public static PyList findall(PyObject pattern,
                             String string)

escape

public static String escape(String s)

compile

public static RegexObject compile(String pattern)

compile

public static RegexObject compile(String pattern,
                                  int flags)