`String.prototype.matchAll` ponyfill.
A tiny, PEG-like system for building language grammars with regexes.
Find multiple RegExp matches in a string
simple persistent cookiejar system
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Convert globs to regular expressions
A regex to match any full character, considering weird character ranges.
Get the first path that exists on disk of multiple paths
Match human-quality input to potential matches by edit distance.
Parses well-formed HTML (meaning all tags closed) into an AST and back. quickly.
Simple, expected, and deterministic best-match sorting of an array in JavaScript
Match balanced character pairs, like "{" and "}"
General purpose glob-based configuration matching.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
A wrapper of morpheme-match API. Match all kuromoji's tokens.
Get all the matches for a regular expression in a string.
A simple function to check whether a mimetype matches the specified mimetype (with wildcard support)
Check if a certain debug flag is enabled.
Tiny helpers for processing regex syntax
RegExp Match Indices polyfill
Dependency-free request URI matcher
Replace all substring matches in a string
Polyfill of future proposal for `util.parseArgs()`
Generates all the text strings that match the given regexp.Expand RegExp.
Regexp#examples returns a list of "all" strings that are matched by the regex. Regexp#random_example returns one, random string that matches.
Search Rails logs for a string - get all the log lines for matching requests.
Example search: matching(/search string/, :keys => :all, :types => [String, Array]).
Pass in a string and turn all math equations into itex equations. Or, pass in a block manipulate multiple matches.
== FEATURES/PROBLEMS: * Partial string matching * The algorithm is not particularly performant == SYNOPSIS: require 'goto_string' s = %w(goto_string is a small library that implements a substring matching and ranking algorithm. The matching and ranking is similar to that found in Quicksilver or TextMate) GotoString::Matcher.match('string', s) #=> [["goto_string", "goto_string", 0.679259259259259, [["string", 5]]], ["substring", "substring", 0.461481481481481, [["s", 0], ["tring", 4]]]] An array is returned which contains one entry for each match. Matches are ordered by rank. Each match is itself an array, containing the following elements: [ "original candidate", "matched string", rank, [["substring_1", offset], ["substring_2", offset], ... ] ] You can optionally pass a block to the match method which will get each candidate passed to it. The return value of the block is what will be used for matching. This is so you can pass in arrays of complex objects as candidates: GotoString::Matcher.match( "goto", Project.find(:all) ) do |p| p.name end The resulting matches will contain a reference to the matched string (the project name) as well as the project (the original candidate) == REQUIREMENTS: * None
Bindings for libfa, a library to manipulate finite automata. Automata are constructed from regular expressions, using extended POSIX syntax, and make it possible to compute interesting things like the intersection of two regular expressions (all strings matched by both), or the complement of a regular expression (all strings _not_ matched by the regular expression). It is possible to convert from regular expression (compile) to finite automaton, and from finite automaton to regular expression (as_regexp)
Ruby String's native #match method will only return the first instance of a pattern match. This gem provides the #match_all method, returns all instances of a pattern match in a String as an array. EXAMPLES: # Given the test string: string = "My cat is asleep on the couch. Now the cat is playing." # #match only returns the first match: string.match(/cat/) => #<MatchData "cat"> # However, I've found I often want to match _all_ instances of the pattern, and # then e.g. iterate through them and do something with them. #match_all does that: string.match_all(/cat/) => [ [0] #<MatchData "cat">, [1] #<MatchData "cat"> ] This is especially useful if, e.g. you want to interrogate the matches to find out their starting/ending indexes within the string, etc
Adds a global method `that`, used to search across relevant fields for all available ActiveRecord models for matches for a string. Like running {Post,User,Comment}.find_by_{name,login,email}("foo")
A simple tool which helps migrate your locally installed gems from github to gemcutter. It will find all the gems installed from github and recognize them on gemcutter using some recursive string matching. It will then present you with a list of everything it will migrate and ask for permission before touching anything.
A simple tool which helps migrate your locally installed gems from github to gemcutter. It will find all the gems installed from github and recognize them on gemcutter using some recursive string matching. It will then present you with a list of everything it will migrate and ask for permission before touching anything.
cnuregexp allows tags to be placed inside a regex which function as labels for the matches. The matches within the MatchData object can then be accessed like a hash with the tag name as the key. cnuregexp also provides a greedy match which will return an array of all matches rather than just the first match. cnuregexp can also extract various data from an xml tag with the Regexp.xml_tag method. It uses Regexps to get the tag name, the attributes and their values, the tag content, and any other relevant data from an xml string. Lastly, cnuregexp allows commonly used regular expressions to be stored in a config file(lib/cnuregexp_config.yml) and accessed with Regexp.regular_expression_name notation eg. Regexp.ssn, Regexp.email_address. cnuregexp comes preloaded with a few common regular expressions which are located in lib/cnuregexp_config.yml.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.