1.0.7 • Published 10 years ago

regexp_utils v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
10 years ago

##RegExp utils## Add powerfull and user friendly methods to RegExp javascript object. You'll never be annoyed of RegExp now ;)

Note: full documentation included into the js file

RegExp.quote(string) : escape special RegExp chars from a string

RegExp.prototype.match(string) : returns a RegExpMatch.

RegExpMatch : matchString : the matched string position : object containing the start and end index of the match variables : array containing the variables obtained for this match, if variable is undefined, value will be null

RegExp.prototype.matchAll(string) : returns all matches.

RegExp.prototype.replace(string, replacement): replace parts into a string. if replacement is a function, it will get a RegExpMatch as parameter.

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago