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
119311 %/g sadasdasd% fałsz
119310 /%/g sadasdasd% fałsz
119309 (/%/g) sadasdasd% fałsz
119308 (/^([0-9]{2})-([0-9]{3})$/D): 123123 fałsz
119307 /^([\d+.]*)\s+([\w\/\-\.]+)$/ 1000 xp prawda
  1. 1000 xp
    • 1000
    • xp
119306 /^([\d+.]*)\s+([\w\/\-\.]+)$/ windows xp fałsz
119305 /^(.*)\s+([\w\/\-\.]+)$/ windows xp prawda
  1. windows xp
    • windows
    • xp
119304 /^(.*)\s+([\w\/\-\.]+)$/ 2x 10,3 stron/mies. prawda
  1. 2x 10,3 stron/mies.
    • 2x 10,3
    • stron/mies.
119303 /^(.*)\s+([\w\/\-\.]+)$/ 2x 10,3stron/mies. fałsz
119302 /^(.*)\s+([\w\/\-]+)$/ 2x 10,3stron/mies. fałsz
119301 /^(.*)\s+([\w\/\-]+)$/ 2x 10,3 m2/s prawda
  1. 2x 10,3 m2/s
    • 2x 10,3
    • m2/s
119300 /^(.*)\s+([\w\/]+)$/ 2x 10,3 m2/s prawda
  1. 2x 10,3 m2/s
    • 2x 10,3
    • m2/s
119299 /^(*)\s+([\w\/]+)$/ 2x 10,3 m2/s fałsz
119298 /^([\w\s\/\.\,]+)\s+([\w\/]+)$/ 2x 10,3 m2/s prawda
  1. 2x 10,3 m2/s
    • 2x 10,3
    • m2/s
119297 /^([\w\s\/\.\,]+)\s*([\w\/]+)$/ 2x 10,3 m2/s prawda
  1. 2x 10,3 m2/s
    • 2x 10,3 m2/
    • s
119296 /^([\w\/\.\,]+)\s*([\w\/]+)$/ 2x 10,3 m2/s fałsz
119295 /^([\d\.\,]+)\s*([\w\/]+)$/ 2x 10,3 m2/s fałsz
119294 /^([\d\.\,]+)\s*([\w\/]+)$/ 10,3 m2/s prawda
  1. 10,3 m2/s
    • 10,3
    • m2/s
119293 /^([\d\.]+)\s*([\w\/]+)$/ 10.3 m2/s prawda
  1. 10.3 m2/s
    • 10.3
    • m2/s
119292 /^([\d\.]+)\s*([\w\/]+)$/ 10.3 m/s prawda
  1. 10.3 m/s
    • 10.3
    • m/s
119291 /^([\d\.]+)\s*([\w\/]+)$/ 100 mm prawda
  1. 100 mm
    • 100
    • mm
119290 /^([\d]+)\s*(\w+)$/ 100 mm prawda
  1. 100 mm
    • 100
    • mm
119289 /^([\d]+)\s*(\w)$/ 100 mm fałsz
119288 /^([\d]+)\s*(\w\/)$/ 100 mm fałsz
119287 /^([\d\.]+)\s*(\w\/)$/ 100 mm fałsz

« poprzednia 1 2 3 4 5 6 7 8 9 104630 4631 następna »