I Ty możesz wspomóc rozwój serwisu dzięki dobrowolnej dotacji za pośrednictwem PayPal!
Kliknij w poniższą grafikę, aby pomóc. Dziękuję!
Informacja zostanie zamknięta za sekund(y).
Wyrażenia regularne wpisuje się w formie separator{wyrażenie}separator, np. /^([a-z]*)$/i lub @^(?:http://)?([^/]+)@i. Stosować można wszelkie formy zgodne z funkcjami sprawdzającymi poprawność wyrażeń regularnych w PHP (przykład).
Dzieje się tak dlatego, że wpisywanie wzorca z uwzględnieniem separatorów pozwala na dodanie modyfikatorów do niego. W wypadku ich braku skrypt domyślnie doda / na początku wyrażenia i / na jego końcu.
Generalnie to użytkownik wyznacza jaką treść i pod jakim kątem chce testować. Musi on jednak posiadać pełne prawa do publikacji testowanej treści, gdyż będzie ona dostępna dla innych internautów. Należy także unikać wpisywania zwrotów obscenicznych, wulgarnych, czy wskazujących zasoby niezgodne z polskim prawem. Użytkownik ponosi pełną odpowiedzialność za treści publikowane przez niego w serwisie. Na uzasadnioną prośbę osób trzecich poszczególne wpisy mogą zostać usunięte z serwisu.
Wyrażeniami regularnymi nazywami wzorce opisujące ciąg znaków.
W sieci znajduje się całe morze przykładowych wyrażeń. Warto zainteresować się przykładowo:
Zauważone błędy proszę zgłaszać w komentarzach pod tym artykułem.
Tak. Przy każdym sprawdzonym wzorcu, w kolumnie identyfikatora, znajduje się odnośnik do strony testowanego wyrażenia. Wystarczy skopiować odnośnik i podzielić się nim ze znajomymi.
Osoby chętne do pomocy mogą jej udzielić w następujący sposób:
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.
| ID | Wyrażenie regularne | Ciąg znaków | Wynik | Zwracane ciągi znaków | Link |
|---|---|---|---|---|---|
| 11093 | ^[A-Z]\/[0-9]+\/[0-9]+\/[0-9]+$ | fs/12/21/12 | fałsz | Link | |
| 11092 | /^[A-Z]\/[0-9]+\/[0-9]+\/[0-9]+$/ | fs/12/21/12 | fałsz | Link | |
| 11091 | <.+?> | <1024><dupa><dwie dupy> | prawda |
|
Link |
| 11090 | <.+> | <1024><dupa><dwie dupy> | prawda |
|
Link |
| 11089 | <\d+> | <1024><dupa><dwie dupy> | prawda |
|
Link |
| 11088 | <.*?> | <1024><dupa><dwie dupy> | prawda | Link | |
| 11087 | <.*> | <1024><dupa><dwie dupy> | prawda |
|
Link |
| 11086 | !/^From:.*@rewo\.pl | [email protected] | fałsz | Link | |
| 11085 | !/^From:.*@rewo\.pl/:h | [email protected] | fałsz | Link | |
| 11084 | !/^From:.*@rewo\.pl/:h | [email protected] | fałsz | Link | |
| 11083 | p=(\d{1,3)}$ | http://blogewu.cba.pl/?p=15 | fałsz | Link | |
| 11082 | p=\d{1,3}$ | http://blogewu.cba.pl/?p=15 | prawda |
|
Link |
| 11081 | p=\d{1,3} | http://blogewu.cba.pl/?p=15 | prawda |
|
Link |
| 11080 | <body>*</body> | <html><head>Current IP Check</head><body>Current IP Address: 127.17.34.312</body></html> | fałsz | Link | |
| 11079 | "(.*)" | <input type="text" name="ka" value="e-mail"> | prawda |
|
Link |
| 11078 | type="(.*)" | <input type="text" name="a" value="e-mail"> | prawda |
|
Link |
| 11077 | <(?:span|div)\s+class=\"articlepublished\">(\d{2}\.\d{2}\.\d{4}),.+?<\/(?:span|div)> | _div class="publicationbody articleBody" xmlns:albertExt="urn:albertExt"__h1 allowedclasses="small medium large"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Headline_1/font_1"_Joakim Helenius may become chairman of Estonian Air council_/font__/h1__span class="articlepublished"_21.06.2010, 14:36_/span__span class="comments"__a href="/?PublicationId=75e6fa72-ba25-4ba4-b82f-f313dc17e517_amp;comments=1"__img src="gfx/comment.gif" alt="" /_ Read comments (2) _/a__/span__p allowedclasses="small medium large" class="lead"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Lead_2/font_1"_Minister of economic affairs Juhan Parts is offering the job of the chairman of the supervisory councl of the national carrier Estonian Air, to investment banker Joakim Helenius, reports aripaev.ee._/font__/p__p allowedclasses="small medium large" name="articlepara"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Body_3/Articlepara_1/font_1"_Commenting the news, Helenius said that before there has been an official statement, he could not comment this issue._/font__/p__p allowedclasses="small medium large" name="articlepara"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Body_3/Articlepara_2/font_1"_Parts himself said that while it was up to the supervisory council to elect the chairman, he would like to see Helenius in this post._/font__/p__p allowedclasses="small medium large" name="articlepara"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Body_3/Articlepara_3/font_1"_The minister added that he would also like to see Raul Allikivi from the ministry of economy in the supervisory council._/font__/p__p allowedclasses="small medium large" name="articlepara"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Body_3/Articlepara_4/font_1"_According to newspaper reports, finance minister Jürgen Ligi has proposed businessman Valdo Randpere, member of the Reform Party, and Aare Järvan, financial advisor of prime minister Andrus Ansip, for the council._/font__/p__p allowedclasses="small medium large" name="articlepara"__font style="BACKGROUND-COLOR: #ffeee2" id="Articlecontent/Body_3/Articlepara_5/font_1"_Following a deal reached last month with SAS, the state now owns 90% of Estonian Air._/font__/p__p allowedclasses="small medium large" name="articlepara" /__div class="footer"__div class="owner"__img src="http://live.balticbusinessnews.com/images/user/toomashobemagi.png" /__span class="name"_Toomas Hobemägi_/span__span class="email"__a href="#" class="pasts"__em_bbn_/em__span_atchar_/span__strong_aripaev.ee_/strong__/a__/span__/div__/div__/div_ |
fałsz | Link | |
| 11076 | /\{([a-zA-Z]+) ([a-zA-Z0-9=\s"']+)\}/is | -------- {Formularz IDFormularza=11} -------- {Galeria ID="27"} -------- {Pliki ID='32'} -------- {CosInnegoA a=1 b=3 d=costam} -------- {CosInnegoC a=1 b=3 cccc="33" ddddd='163'} -------- a tu inne {sadfsadf a dsafdsaf} {sadfsadfsadf |
prawda |
|
Link |
| 11075 | /\{([a-zA-Z]+) ([a-zA-Z0-9=\s'"]+)\}/is | -------- {Formularz IDFormularza=11} -------- {Galeria ID="27"} -------- {Pliki ID='32'} -------- {CosInnegoA a=1 b=3 d=costam} -------- {CosInnegoC a=1 b=3 cccc="33" ddddd='163'} -------- a tu inne {sadfsadf a dsafdsaf} {sadfsadfsadf |
prawda |
|
Link |
| 11074 | /\{([a-zA-Z]+) ([a-zA-Z0-9=\s"]+)\}/is | -------- {Formularz IDFormularza=11} -------- {Galeria ID="27"} -------- {Pliki ID='32'} -------- {CosInnegoA a=1 b=3 d=costam} -------- {CosInnegoC a=1 b=3 cccc="33" ddddd='163'} -------- a tu inne {sadfsadf a dsafdsaf} {sadfsadfsadf |
prawda |
|
Link |
| 11073 | /type="(.*)"/ | <input type="text" name="a" value="e-mail"> | prawda |
|
Link |
| 11072 | /baba="unknown(.*)"/ | baba="unknown__1000159"> | prawda |
|
Link |
| 11071 | /baba="unkown(.*)"/ | baba="unknown__1000159"> | fałsz | Link | |
| 11070 | /baba="(.*)"/ | baba="unknown__1000159"> | prawda |
|
Link |
| 11069 | /name="(.*)"$/ | <input type="text" name="a" value="e-mail"> | fałsz | Link |
« poprzednia 1 2 … 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 … 21314 21315 następna »