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 |
---|---|---|---|---|---|
1671 | @<td>.*?has transfered \d+ (?:PLN|GOLD) to your account.*?</td>@s | <table class="messages largepadded"> <tr> <th width="35px"></th> <th width="40px"></th> <th width="505px"></th> <th width="110px"></th> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88262428" value="88262428" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">10 hours ago</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169456" value="88169456" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169452" value="88169452" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169451" value="88169451" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169103" value="88169103" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169086" value="88169086" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169082" value="88169082" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169059" value="88169059" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_88169046" value="88169046" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/606731">BuzzY</a> has transfered 1 PLN to your account. </p> </td> <td> <span class="fakeheight">yesterday</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_87473700" value="87473700" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">2 days ago</span> </td> </tr> </table><table class="messages largepadded"> <tr> <th width="35px"></th> <th width="40px"></th> <th width="505px"></th> <th width="110px"></th> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_86651028" value="86651028" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">4 days ago</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_85792979" value="85792979" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">6 days ago</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_85610442" value="85610442" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/2200628">Szymon05</a> wants to add you to his friends list. Will you accept? <a href="/citizen/friends/accept/2922026/85610442">Yes</a> - <a href="/citizen/friends/reject/2922026/85610442">No</a> </p> </td> <td> <span class="fakeheight">7 days ago</span> </td> </tr> </table><table class="messages largepadded"> <tr> <th width="35px"></th> <th width="40px"></th> <th width="505px"></th> <th width="110px"></th> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_86651028" value="86651028" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">4 days ago</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_85792979" value="85792979" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> There is no more food in your inventory. Without food to eat your Citizen loses 4 wellness each day until he dies. To avoid death by starvation we advise you to buy food from the <a href="/en/market/country-0-industry-1-quality-0/1">marketplace</a>. </p> </td> <td> <span class="fakeheight">6 days ago</span> </td> </tr> <tr > <td><input type="checkbox" name="delete_message[]" id="delete_message_85610442" value="85610442" /></td> <td> <img class="icon" src="/images/parts/icon-bell_notifications-empty.gif" alt="Icon-bell_notifications-empty" /> </td> <td> <p class="smallpadded"> <a href="/en/citizen/profile/2200628">Szymon05</a> wants to add you to his friends list. Will you accept? <a href="/citizen/friends/accept/2922026/85610442">Yes</a> - <a href="/citizen/friends/reject/2922026/85610442">No</a> </p> </td> <td> <span class="fakeheight">7 days ago</span> </td> </tr> </table> |
prawda |
|
Link |