1.0.7 • Published 8 years ago

regexp_utils v1.0.7

Weekly downloads
1
License
ISC
Repository
-
Last release
8 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

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago