Download the PHP package niklongstone/regex-reverse without Composer

On this page you can find all versions of the php package niklongstone/regex-reverse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package regex-reverse

Regex reverse

Latest Version Build Status Coverage Status Quality Score

Regular expression reverter, generates a string from the given regular expression.

Install

Via Composer

Usage

For a list of useful regular expression, please visit: Awesome PCRE

Supported expressions

Character classes

Expression Description Result
\d digit a number
\D non digit an alpha char
\w word a alphanumeric char
\W non word a non alphanumeric char
\s space a blank space
\S non space a non blank space

Conditional and subgroup

Expression Description Example Result
() subgroup (\d\w)+@ 97a987Ss@
(a b) alternation (a i)nt int
* zero or more \d* 123502
+ one or more \d+ 32133
? zero or one \d? 3
{n} {n,} {n,m} from n to m times \w{1,3} np

Ranges

Expression Description Result
[0-9] range 0 to 9 7
[a-d] range a to b b
[0-9c-f] range 0-9 or c-f d
[ab5.] chars in list b
[^ab5.] chars not in list 8

Examples

Expression Result Description
2\d{2}-\d{3}-\d{4} 212-686-1234 US phone number
\(\d{3}\)\s\d{7} (957) 7583632 phone with area code
\w+@\w+\.\D{2,3} [email protected] email
www\.\w+\.com www.h3MEb7k.com URL
192\.\d{3}.255.\d{1,3} 192.134.255.4 Ip address
\D{3,7}\s\D{2}\s\d{2,5} mslchvi Rr 861 US address
<TAG\s.*>.*?<\/TAG> <TAG fNol>ZPXApG</TAG> TAG
004[0-9] \d{7,10} 0044 75132145 europe phone
SE[1-9]{1}\d{1}\s[A-Z]{2}\d{2} SE27 GU35 london SE post code
SE[1-9]{1}\d{1}\s[A-Z]{2}\d{2} SE27 GU35 london SE post code
organi[sz]e organise or organize US or UK spelling

Other features

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of regex-reverse with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package niklongstone/regex-reverse contains the following files

Loading the files please wait ....