url-pattern - easier than regex string matching patterns for urls and other strings

  •        90

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.a pattern is immutable after construction. none of its methods changes its state. that makes it easier to reason about.

http://github.com/snd/url-pattern

Tags
Implementation
License
Platform

   




Related Projects

url-parse - Small footprint URL parser that works seamlessly across Node

  •    Javascript

The url-parse method exposes two different API interfaces. The url interface that you know from Node.js and the new URL interface that is available in the latest browsers.In version 0.1 we moved from a DOM based parsing solution, using the <a> element, to a full Regular Expression solution. The main reason for this was to make the URL parser available in different JavaScript environments as you don't always have access to the DOM. An example of such environment is the Worker interface. The RegExp based solution didn't work well as it required a lot of lookups causing major problems in FireFox. In version 1.0.0 we ditched the RegExp based solution in favor of a pure string parsing solution which chops up the URL into smaller pieces. This module still has a really small footprint as it has been designed to be used on the client side.

routes.js - a minimalist url-style routing library, extracted from connect

  •    Javascript

routes lets you easily dispatch based on url-style strings. It comes with a default Router function that you can use to route http requests, but it also cleanly exposes the important functionality so you could also use it to perform more generic string pattern matching. The full range of Path Formats is documented below.

mux - A high performance and powerful trie based url path router for Go.

  •    Go

A high performance and powerful trie based url path router for Go. This router supports fixed and regex rules in routing pattern, and matches request method. It's optimized by trie structure for faster matching and large scale rules.

micro-router - :station: A tiny and functional router for Zeit's Micro

  •    Javascript

A simple url pattern that you can define your path. In this path, you can set your parameters using a : notation. The req parameter from handler will return these parameters as an object. For more information about how you can define your path, see url-pattern that's the package that we're using to match paths.

learn-regex - Learn regex the easy way

  •    

Regular expression is a group of characters or symbols which is used to find a specific pattern from a text. A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a mouthful, you will usually find the term abbreviated as "regex" or "regexp". Regular expression is used for replacing a text within a string, validating form, extract a substring from a string based upon a pattern match, and so much more.


learn-regex - Learn regex the easy way

  •    

Regular expression is a group of characters or symbols which is used to find a specific pattern from a text. A regular expression is a pattern that is matched against a subject string from left to right. The word "Regular expression" is a mouthful, you will usually find the term abbreviated as "regex" or "regexp". Regular expression is used for replacing a text within a string, validating form, extract a substring from a string based upon a pattern match, and so much more.

php-domain-parser - Public Suffix List based domain parsing implemented in PHP

  •    PHP

PHP Domain Parser is a Public Suffix List based domain parser implemented in PHP. While there are plenty of excellent URL parsers and builders available, there are very few projects that can accurately parse a url into its component subdomain, registrable domain, and public suffix parts.

query-string - Parse and stringify URL query strings

  •    Javascript

🔥 Want to strengthen your core JavaScript skills and master ES6? I would personally recommend this awesome ES6 course by Wes Bos. You might also like his React course.Parse a query string into an object. Leading ? or # are ignored, so you can pass location.search or location.hash directly.

jsRouter: Routing for Javascript

  •    

jsRouter is a lightweight URL router written in Javascript. The routing is based on the path after the hash (#) in the URL, thus providing pure client-side navigation for AJAX applications. By imitating ASP.NET MVC's routing, the use pattern is familiar for .NET developers.

matcher - Simple wildcard matching

  •    Javascript

Useful when you want to accept loose string input and regexes/globs are too convoluted.Accepts an array of input's and pattern's.

crocs - Write regex using pure python class/function syntax and test it better. (Regex for humans).

  •    Python

Write regex using pure python class/function syntax and test it better. The idea behind crocs is simplifying the construction and debugging of regex's. It is possible to implement regex's using a function syntax, the resulting structure is then compiled into a regex's string. it is as well possible to generate random inputs for the regex that would match the regex pattern.

crossroads.js - JavaScript Routes

  •    Javascript

Crossroads.js is a routing library inspired by URL Route/Dispatch utilities present on frameworks like Rails, Pyramid, Django, CakePHP, CodeIgniter, etc... It parses a string input and decides which action should be executed by matching the string against multiple patterns.If used properly it can reduce code complexity by decoupling objects and also by abstracting navigation paths.

matches.js - Powerful pattern matching for Javascript

  •    Javascript

Matches.js brings the power and expressiveness of pattern matching to Javascript. Check for specific values using number or string literals, null, or undefined.

qs - A querystring parser with nesting support

  •    Javascript

A querystring parsing and stringifying library with some added security. The qs module was originally created and maintained by TJ Holowaychuk.

scala-parser-combinators - simple combinator-based parsing for Scala

  •    Scala

This library is now community-maintained. If you are interested in helping please contact @gourlaysama or mention it on Gitter. As of Scala 2.11, this library is a separate jar that can be omitted from Scala projects that do not use Parser Combinators.

php-restclient - A generic REST API client for PHP

  •    PHP

headers - An associative array of HTTP headers and values to be included in every request. parameters - An associative array of URL or body parameters to be included in every request. curl_options - cURL options to apply to every request; anything defined here: https://secure.php.net/manual/en/function.curl-setopt.php. These will override any automatically generated values. build_indexed_queries (bool) - http_build_query automatically adds an array index to repeated parameters which is not desirable on most systems. Use this option to enable the default behavior. Defaults to FALSE. user_agent - User agent string to use in requests. base_url - URL to use for the base of each request. format - Format string is appended to resource on request (extension), and used to determine which decoder to use on response; a request URL like "api.twitter.com/1.1/statuses/user_timeline.json" would be expected to return well-formed JSON. format_regex - Pattern to extract format from response Content-Type header, used to determine which decoder to use on response. decoders - Associative array of format decoders. See "Direct Iteration and Response Decoding". username - Username to use for HTTP basic authentication. Requires password. password - Password to use for HTTP basic authentication. Requires username. url (string) - URL of the resource you are requesting. Will be prepended with the value of the base_url option, if it has been configured. Will be appended with the value of the format option, if it has been configured.

match-when - :shell: Pattern matching for modern JavaScript

  •    Javascript

Note that when() is a catch-all pattern and, if used, should always be the last condition. If you forget it match() will throw a MissingCatchAllPattern exception if nothing was matched.

backbone-query-parameters - Backbone plugin which provides query parameter support

  •    Javascript

Copy backbone.queryparams.js to your environment and include after backbone.js. Any route except those ending with a wildcard will automatically accept additional content using the '?' separator. This content is a set of key value pairs using '&' as the pair separator and '=' as the key/value separator - just like the URL query string syntax.

grunt-replace - Replace text patterns with applause.

  •    Javascript

Replace text patterns with applause. Define patterns that will be used to replace the contents of source files.

react-native-parsed-text - Parse text and make them into multiple React Native Text elements

  •    Javascript

This library allows you to parse a text and extract parts using a RegExp or predefined patterns. Currently there are 3 predefined types: url, phone and email.All the props are passed down to a new Text Component if there is a matching text. If those are functions they will receive as param the value of the text.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.