Find the first element in an array that passes a callback test. Equivalent to underscore.find()
get value of record with first match key
return first match or empty string
Match balanced character pairs, like "{" and "}"
Declare a ruleset and return values based on the first match
Get the first path that exists on disk of multiple paths
Match balanced character pairs, like "{" and "}"
General purpose glob-based configuration matching.
npm package for https://github.com/google/diff-match-patch
Regular expression for matching ANSI escape codes
A tiny, PEG-like system for building language grammars with regexes.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
Match a Unicode property or property alias to its canonical property name per the algorithm used for RegExp Unicode property escapes in ECMAScript.
Require the first match in a set of directories
Matches strings against configurable strings, globs, regular expressions, and/or functions
TypeScript definitions for balanced-match
Simple, expected, and deterministic best-match sorting of an array in JavaScript
Higher-level content negotiation
RegExp Match Indices polyfill
Split a string on the first occurance of a given separator
Match human-quality input to potential matches by edit distance.
a CSS selector compiler/engine
Match BCP 47 language tags with language ranges per RFC 4647
A tiny and extremely fast library for compiling and matching basic glob patterns
Automatically switch Git and SSH identities by active profile.
Pure-Rust Oniguruma regex engine with SIMD-accelerated search
es-fluent manager core
A tiny, rule-based reverse proxy written in Rust
Deterministic proof engine for high-integrity Rust applications
Agent-first firmware SIL testing
Extract browser cookies from Chrome, Edge, Firefox, and Safari. Reads cookie databases directly with decryption support for macOS Keychain, Linux keyring, and Windows DPAPI.
CLI tool for extracting browser cookies from Chrome, Edge, Firefox, and Safari
Authentication & identity resolution for Thunder Dome
Control-chain service and tooling for Greentic workflows.
Forwards ports on UPnP-enabled gateways. Inspired by portmapper (written in Java). Command line and lib.
Composable agent kernel: stateless skills, transport-agnostic tools, registry-driven agents, signal-routing coordinator. Companion crate for rig.
Canonicalises and matches person names with Latin1 characters and first and last names
Make sure API behavior is not changing by taking and storing a snapshot from an API response on a first run and check if they match on next spec runs.
A tool for matching English first names with their shortened version.
A lightweight rule engine with a declarative DSL for defining conditions and actions. Supports priority-based ordering, rule tagging with selective evaluation, first-match and all-match modes, dry run, conflict detection, serialization, chaining, and per-rule execution statistics.
Extend tail and parser plugins to support logs with separators beyond just a single-line regex to match the first line.
- Adds `Object#attrs` method for querying nested attributes - Adds `Array#where` to return a subset of elements matching a condition - Adds `Array#find_by` to return the first element matching a condition - Adds `Object#matches?` to check if an object matches a condition - Adds `Hash#method_missing` to allow {a: 1}.a instead of {a: 1}[:a]
Takes a CSV file and returns a a collection of objects generated by that CSV file.
FuzzBall is a gem that finds fuzzy matches of a string (the 'needle') within an array of strings (the 'haystack'). It does so via a two-step process: first, it finds candidate strings from the haystack that have high similarity to the needle, then uses a Smith-Waterman algorithm to fuzzily match from these candidates. Strings are returned along with a matching score. Both steps of the search are written in C for greater performance.
Useful extensions to Enumerable and String, Range and other classes. A Enumerable#each_with_flags for flagging first and last items in the iteration, operations on Ranges for testing contiguity, gaps in sets of Ranges, and performing set operations on Ranges. String#fuzzy_match for user-friendly matchers to test for matching.
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
SeedList is designed for Rails-powered tournament engines that need to persist a 1-indexed ordered list of players (ranked low-to-high by skill or past performance) and then match them up appropriately in the first round of a bracket.
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.