What syntax should I use to provide regex?

The correct form of regular expression is delimiter{pattern}delimiter, f.e. /^([a-z]*)$/i or @^(?:http://)?([^/]+)@i. Every form compatible with functions checking correctness of regular expressions in PHP are allowed (example).

Why should I type pattern with delimiters?

The reason is obvious. With delimiters you have a chance to add modifiers to the regexp. Otherwise script will automatically add / at the beginning and / at the end of the pattern.

Can I add any content to the tester?

Generally, the user determines what content and at what way he wants to test, but it must have full rights to publish the test content because it will be available for other Internet users. You should also avoid writing obscene phrases, vulgar phrases, or suggest resources incompatible with Polish law. You are fully responsible for the content posted by you on the site. On the reasoned request of a third party individual entries can be removed from the site.

What are regular expressions?

A regular expression is a pattern that describes a set of strings.

  1. wikipedia.org - definition
  2. regular-expressions.info - knowledge compendium
  3. php.net - using in PHP

Where can I find examples of regular expressions?

There are a lot of examples on the internet. You should especially check this:

  1. 15 useful regular expressions in PHP [polish]
  2. regexlib.com - patterns library

I think I have found a bug in Regexp. Where can I report it?

Please submit every found bug by typing comment here (polish and english).

I am a forum user. Can I show pattern test to other users?

Yes. On ID column of every tested expression you can find hiperlink. Copy it and share, that's all.

How can I help develop website?

You can help on following cases:

  1. By free-will dotation via PayPal
  2. By creating website translations. Currently we need this translations: german, spanish, french, italian and russian. If you are interested send me an e-mail
  3. By placing advertisement on the site
  4. By adding a site to your favorite on the social networking sites

regexp.pl

regular expressions tester

Zmień język na polski.

Zmień język na angielski.

Pokaż/ukryj listę ostatnich testów.

Pokaż listę tylko moich testów.

Pokaż listę wszystkich testów.

Wyświetl zawartość kanału RSS.

Pokaż pomoc.

Rozwiń listę wyników, aby zobaczyć rezultat testu.

Tester wyrażeń regularnych pozwoli Ci w prosty sposób sprawdzić poprawność wykorzystywnego wzorca i frazy. Wystarczy, że wypełnisz poniższy formularz, a skrypt zwróci wszelkie niezbędne do walidacji dane.

Dodając wzorzec i ciąg znaków do sprawdzenia potwierdzasz, że masz pełne prawa do upubliczniania zawartych w nich treści.

ID Wyrażenie regularne Ciąg znaków Wynik Zwracane ciągi znaków Link
119272 /^[\d]{3}-{1}[\d]{3}-{1}[\d]{2}-{1}[\d]{2}$/ 681-143-06-64 prawda
  1. 681-143-06-64
119271 /^[\d]{3}-{1}[\d]{3}-{1}[\d]{2}-{1}[\d]{2}$/ 683-134-16-46 prawda
  1. 683-134-16-46
119270 /^[\d]{3}[\d]{3}[\d]{2}[\d]{2}$/ 6831341646 prawda
  1. 6831341646
119269 ^.*\\.xml(\\.gz)?)\\.(.*\\..*)(\\.FAP-.*$) failedoperations_test/FGW-1/CDNL_FGW_1_4.xml.gz.20130421T124941.740930.FAP-1_4_D_DL fałsz
119268 /^s(\d+)\-price_net$/ s12-price_net prawda
  1. s12-price_net
    • 12
119267 /^s(\d+)\-price_net$/ s1-price_net prawda
  1. s1-price_net
    • 1
119266 /^(?=[a-z0-9_#@%\*-]*?[A-Z])(?=[a-z0-9_#@%\*-]*?[a-z])(?=[a-z0-9_#@%\*-]*?[0-9])([a-z0-9_#@%\*-]{8,24})$/Diu 1xY#n6%2V prawda
  1. 1xY#n6%2V
    • 1xY#n6%2V
119265 /^(?=[a-z0-9_#@%\*-]*?[A-Z])(?=[a-z0-9_#@%\*-]*?[a-z])(?=[a-z0-9_#@%\*-]*?[0-9])([a-z0-9_#@%\*-]{8,24})$/ 1xY#n6%2V fałsz
119264 /^(?=[a-z0-9_#@%\*-]*?[A-Z])(?=[a-z0-9_#@%\*-]*?[a-z])(?=[a-z0-9_#@%\*-]*?[0-9])([a-z0-9_#@%\*-]{8,24})$/ Bender19889 fałsz
119263 /^(?=[a-z0-9_#@%\*-]*?[A-Z])(?=[a-z0-9_#@%\*-]*?[a-z])(?=[a-z0-9_#@%\*-]*?[0-9])([a-z0-9_#@%\*-]{8,24})$/ bender19889 fałsz
119262 /.*(\\\\).*/ fałsz
119261 /.*(\\\\).*/ m fałsz
119260 /.*(\\\\).*/ ghkkhjk fałsz
119259 /.*(\\\\).*/ k fałsz
119258 /.*(\\).*/ k prawda
119257 /.*(\\).*/ prawda
119256 #^http://uploaded\.to/file/# http://uploaded.to/file/yndk7gv6/DVD.X.Studios.CloneDVD.5.6.0.0.Multilingual.rar prawda
  1. http://uploaded.to/file/
119255 ^([a-zA-z])$ szybkapilkas fałsz
119254 ^([a-zA-z])$ szybkapilka fałsz
119253 /href\=\"http\:\/\/regiomoto\.pl\/oferta[0-9a-zA-Z\:\/\.\-\_\" ]{1,2000}-[0-9A-Z\"]{1,200}/ href="http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151" prawda
  1. href="http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151"
119252 /\"http\:\/\/regiomoto\.pl\/oferta[0-9a-zA-Z\:\/\.\-\_\" ]{1,2000}-[0-9A-Z\"]{1,200}/ http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151 fałsz
119251 /href\=\"http\:\/\/regiomoto\.pl\/oferta[0-9a-zA-Z\:\/\.\-\_\" ]{1,2000}-[0-9A-Z\"]{1,200}/ http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151 fałsz
119250 /href="http://regiomoto.pl/oferta[0-9a-zA-Z:/.-_" ]{1,2000}-[0-9A-Z"]{1,200}/ http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151 fałsz
119249 /href="http://regiomoto.pl/oferta[0-9a-zA-Z:/.-_" ]{1,2000}-[0-9A-Z"]{1,200}/ http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151 fałsz
119248 /href="http://regiomoto.pl/oferta[0-9a-zA-Z:/.-_" ]{1,2000}-[0-9A-Z\"]{1,200}/ http://regiomoto.pl/oferta/volkswagen-passat-olej_napedowy_diesel-komprachcice-2004-19999-RMU51201101981151 fałsz

« poprzednia 1 2 3 4 5 6 7 8 9 104628 4629 następna »