# eric6.Helpviewer.GreaseMonkey.GreaseMonkeyUrlMatcher

Module implementing the GreaseMonkey URL matcher.

### Global Attributes

None

### Classes

GreaseMonkeyUrlMatcher | Class implementing the GreaseMonkey URL matcher.

### Functions

wildcardMatch | Module function implementing a special wildcard matcher.

## GreaseMonkeyUrlMatcher

Class implementing the GreaseMonkey URL matcher.

### Derived from

object

### Class Attributes

None

### Class Methods

None

### Methods

GreaseMonkeyUrlMatcher | Constructor
__parsePattern | Private method to parse the match pattern.
match | Public method to match the given URL.
pattern | Public method to get the match pattern.

### Static Methods

None

#### GreaseMonkeyUrlMatcher (Constructor)

GreaseMonkeyUrlMatcher(pattern)

Constructor

pattern
  pattern to be used for the matching (string)

#### GreaseMonkeyUrlMatcher.__parsePattern

__parsePattern(pattern)

Private method to parse the match pattern.

pattern
  match pattern to be used (string)

#### GreaseMonkeyUrlMatcher.match

match(urlString)

Public method to match the given URL.

urlString
  URL to match (string)

Returns:
  flag indicating a successful match (boolean)

#### GreaseMonkeyUrlMatcher.pattern

pattern()

Public method to get the match pattern.

Returns:
  match pattern (string)

Up

## wildcardMatch

wildcardMatch(string, pattern)

Module function implementing a special wildcard matcher.

string
  string to match (string)
pattern
  pattern to be used (string)

Returns:
  flag indicating a successful match (boolean)

Up