pregex.core.tokens

This module contains a number of classes that represent special characters. Each token represents one and only one character. It is recommended that you make use of these classes instead of providing their corresponding characters as strings on your own in order to prevent any errors that relate to character escaping from happening.

Classes & methods

Below are listed all classes within pregex.core.tokens along with any possible methods they may possess.

class pregex.core.tokens.Backslash[source]

Matches a single backslash character.

class pregex.core.tokens.Bullet[source]

Matches the bullet symbol “•”.

class pregex.core.tokens.CarriageReturn[source]

Matches a single carriage return character.

class pregex.core.tokens.Copyright[source]

Matches the copyright symbol “©”.

class pregex.core.tokens.Division[source]

Matches the division sign “÷”.

class pregex.core.tokens.Dollar[source]

Matches the dollar sign “$”.

class pregex.core.tokens.Euro[source]

Matches the euro sign “€”.

class pregex.core.tokens.FormFeed[source]

Matches a single form feed character.

class pregex.core.tokens.Infinity[source]

Matches the infinity symbol “∞”.

class pregex.core.tokens.Multiplication[source]

Matches the multiplication sign “×”.

class pregex.core.tokens.Newline[source]

Matches a single newline character.

class pregex.core.tokens.Pound[source]

Matches the English pound sign “£”.

class pregex.core.tokens.Registered[source]

Matches the registered trademark symbol “®”.

class pregex.core.tokens.Rupee[source]

Matches the Indian rupee sign “₹”.

class pregex.core.tokens.Space[source]

Matches a single space character.

class pregex.core.tokens.Tab[source]

Matches a single tab character.

class pregex.core.tokens.Trademark[source]

Matches the unregistered trademark symbol “™”.

class pregex.core.tokens.VerticalTab[source]

Matches a single vertical tab character.

class pregex.core.tokens.WhiteBullet[source]

Matches the white bullet symbol “◦”.

class pregex.core.tokens.Yen[source]

Matches the Japanese yen sign “¥”.