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 adding a site to your favorite on the social networking sites.

The policy of using cookies and similar technologies.

Cookies wykorzystywane są na następujących zasadach:

  1. W związku z udostępnianiem funkcji testowania wyrażeń regularnych i personalizacją http://regexp.pl (w dalszej części zwanego „Serwisem”) stosuje cookies (tzw. ciasteczka), tj. informacje zapisywane przez serwery na urządzeniu końcowym użytkownika. Serwery mogą odczytać informacje przy każdorazowym połączeniu się z tego urządzenia końcowego lub używać innych technologii o funkcjach tożsamych z ciasteczkami. W niniejszym dokumencie, informacje dotyczące cookies mają zastosowanie również do innych podobnych technologii stosowanych w ramach Serwisu. Pliki cookies stanowią dane informatyczne, w szczególności pliki tekstowe, które przechowywane są w urządzeniu końcowym użytkownika serwisu internetowego. Cookies zazwyczaj zawierają nazwę domeny serwisu internetowego, z którego pochodzą, czas przechowywania ich na urządzeniu końcowym oraz unikalny numer.
  2. Pliki cookies wykorzystywane są w celu:
    • dostosowania zawartości Serwisu do preferencji użytkownika oraz optymalizacji korzystania z niej; w szczególności pliki te pozwalają rozpoznać urządzenie użytkownika serwisu internetowego i odpowiednio wyświetlić stronę internetową, dostosowaną do jego indywidualnych potrzeb,
    • tworzenia statystyk, które pomagają zrozumieć, w jaki sposób użytkownicy serwisu korzystają ze stron internetowych, co umożliwia ulepszanie ich struktury i zawartości,
    • utrzymania sesji użytkownika serwisu internetowego (po zalogowaniu), dzięki której użytkownik nie musi na każdej podstronie serwisu ponownie wpisywać loginu i hasła,
    • dostarczania użytkownikom treści reklamowych bardziej dostosowanych do ich zainteresowań.
  3. W ramach naszych serwisów internetowych możemy stosować następujące rodzaje plików cookies:
    • „niezbędne” pliki cookies, umożliwiające korzystanie z usług dostępnych w ramach serwisu internetowego, np. uwierzytelniające pliki cookies wykorzystywane do usług wymagających uwierzytelniania w ramach Serwisu,
    • pliki cookies służące do zapewnienia bezpieczeństwa, np. wykorzystywane do wykrywania nadużyć w zakresie uwierzytelniania w ramach serwisu,
    • pliki cookies, umożliwiające zbieranie informacji o sposobie korzystania ze stron internetowych serwisu,
    • „funkcjonalne” pliki cookies, umożliwiające „zapamiętanie” wybranych przez użytkownika ustawień i personalizację interfejsu użytkownika, np. w zakresie wybranego języka lub regionu, z którego pochodzi użytkownik, rozmiaru czcionki, wyglądu strony internetowej itp.,
    • „reklamowe” pliki cookies, umożliwiające dostarczanie użytkownikom treści reklamowych bardziej dostosowanych do ich zainteresowań.
  4. W wielu przypadkach oprogramowanie służące do przeglądania stron internetowych (przeglądarka internetowa) domyślnie dopuszcza przechowywanie plików cookies w urządzeniu końcowym użytkownika. Użytkownicy serwisu mogą dokonać w każdym czasie zmiany ustawień dotyczących plików cookies. Ustawienia te mogą zostać zmienione w szczególności w taki sposób, aby blokować automatyczną obsługę plików cookies w ustawieniach przeglądarki internetowej bądź informować o ich każdorazowym zamieszczeniu w urządzeniu użytkownika serwisu internetowego. Szczegółowe informacje o możliwości i sposobach obsługi plików cookies dostępne są w ustawieniach oprogramowania (przeglądarki internetowej). Niedokonanie zmiany ustawień w zakresie cookies oznacza, że będą one zamieszczone w urządzeniu końcowym użytkownika, a tym samym będziemy przechowywać informacje w urządzeniu końcowym użytkownika i uzyskiwać dostęp do tych informacji.
  5. Wyłączenie stosowania cookies może spowodować utrudnienia korzystanie z niektórych usług w ramach naszych serwisów internetowych, w szczególności wymagających logowania, czy personalizacji.
  6. Pliki cookies mogą być zamieszczane w urządzeniu końcowym użytkownika serwisu internetowego, a następnie wykorzystywane przez współpracujących z Serwisem reklamodawców, przez firmy badawcze oraz dostawców aplikacji multimedialnych.

Zasady opisane przy pomocy artykułu i w zgodzie z jednoznacznym zezwoleniem jego autora do użycia podlinkowanego tam tekstu polityki cookies.

Terms of use and the scope of data processing.

  1. General information
    1. These regulations define the rules of using the website available at the address regexp.pl (hereinafter referred to as "website"), and in particular from the mechanisms of testing regular expressions.
    2. The author of this website is specified in footer.
    3. The main purpose of the website's existence is to test the correctness of the entered data with respect to the entered regular expressions.
    4. The nature of the site is personal and the ability to use its functionality has been made available on pro bono publico basis.
    5. The one who uses the website is reffered to "user" and the data send directly to the website by user as "data".
    6. The supplement to these regulations is "The policy of using cookies and similar technologies".
  2. Terms of use of the website
    1. The operation of the website is based on the verification of data entered by the user.
    2. The absolute condition of using the website is to have all rights to publish data which you entered via the website.
    3. By entering any data on the website you agree to their processing and publication (eg in a history list available on the website).
    4. It is forbidden to enter data that is personal, sensitive, constituting company secrets, data that may violate the rights of physical or legal third parties, which user does not have the right to publish or process data on the website.
    5. User takes full responsibility for the fact that the data are entered in accordance with these regulations and Polish law.
    6. The author will react appropriate to reports regarding violations in a reasonable time, after successful reading of notification of a potential violation.
  3. The scope of data processing
    1. The website collects data necessary for its functioning, hereinafter referred to as "entire data".
    2. The website does not profile users and entire data is not collected to identify individuals.
    3. Website is used by unregistered users.
    4. Due to the purpose of the website data entered by users are collected as set out in the terms of use of the website.
    5. At the same time, along with the input by the user, information about the date of the action and the IP address of the user or other technical information obtained from generally available WHOIS databases are collected and saved.
    6. Logs are collected on the server level.
    7. Due to the business profile, entire data can be accessed by the server resource service provider servicing the website.
    8. The data is not automatically disclosed to third parties.
    9. Information that supports the collection of statistics may be transferred to the external Google Statistics service in accordance with Google's privacy policy.
    10. In legally justified cases, eg at the request of relevant services, individual data may be made available to authorized entities.

regexp.pl

regular expressions tester

Change language to Polish.

Change language to English.

Show/hide list of last tests.

Show list of your tests.

Show list of all tests.

Show RSS channel.

Show webpage help.

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

With this regular expressions tester you can check correctness of a pattern and subject. Please fill up below form, submit and wait until webpage returns result.

By adding a pattern and a string to check you acknowledge that you have full rights to publicize their contents and you accept terms of use.

ID Regular expression Subject Result Matches Link
533150 ^?(a)?(z)$ z false
533149 ^?(a)?(z)$ zz false
533148 ^[a|z]$ zz false
533147 ^[a|z]$ z true
  1. z
533146 ^[a|z]$ zzzs false
533145 a|z zzzs true
  1. z
  2. z
  3. z
533144 a|z zzz true
  1. z
  2. z
  3. z
533143 ^nls.= <nls languageCode="tr" name="Data przeglądu 48"/> false
533142 ^nls languageCode=.*/> <nls languageCode="tr" name="Data przeglądu 48"/> false
533141 *[A-Z]*[A-Z]* Kowalki Jan
Kowalki Jan i Monika
false
533140 *[A-Z]*[A-Z]* Kowalki Jan2 false
533139 *[A-Z]*[A-Z]* Kowalki Jan false
533138 ['"] ZZ/2025/04/M_MAR/17898:
Wsparcie TikTok - 2025.02_trymerbabyliss-x-metals996e_CONVERSION,
24.12.23838-legodzien-kobiet_SALE ,
2025.02_parownica-doubran-steamer-tefaldt9814f0-
aerosteam_CONVERSIO
Nasd
false
533137 ^[^\x00-\x1F'"]*$
ZZ/2025/04/M_MAR/17899:
Wsparcie TikTok - 202''''.02_Eksperci_marz
ec1_VIDEOVIEWS , 2025.01.2'4031_kreaty
wne-ferie_SALE ,'''''
false
533136 /^(PL)([0-9]{10})$/i 32432423423 false
533135 /^(PL)([0-9]{10})$/i dwdw false
533134 (t\.[a-z]+)\s+IS NOT DISTINCT FROM\s+(s\.[a-z]+) AND t.no_of_channels IS NOT DISTINCT FROM s.no_of_channels false
533133 #[0-9] #4 true
  1. #4
533132 #[0-9] #3 true
  1. #3
533131 *#[0-9]* #3 true
  1. #3
533130 *#[0-9]* #35 true
  1. #3
533129 ^(.*)\s\[Nr:\s*(\d+)\]:\s*(.*),\s*(odbiór osobisty|wraca do klienta|wraca na stan)? Falownik LF Integrity C Bieżnia: błąd E20, wraca do klienta
false
533128 ^https:\\/\\/.+-system\\.erecruiter\\.dev-ers\\.pracuj\\.local$ https://master-system.erecruiter.dev-ers.pracuj.local/ false
533127 ^(\d{3}[-\s]?){2}\d{3}$ ^(d{3}[-s]?){2}d{3}$ false
533126 numer tel ^(d{3}[-s]?){2}d{3}$ false

« previous 1 2 3 4 5 6 7 8 9 1021174 21175 next »