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

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.

ID Regular expression Subject Result Matches Link
101145 ^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]{1,})*\.([a-zA-Z]{2,}){1}$ jargo@interia.pl true
  1. jargo@interia.pl
    • pl
101144 /<([a-z]+)([\s]{1}[^=]+[=]{1}[^<]+)*(?:>(.*)<\/\1>|\s+\/>)/u <a href="http://m1chu.eu/" title="m1chu.eu - another devblog">m1chu.eu</a> - <strong>another devblog</strong> true
  1. <a href="http://m1chu.eu/" title="m1chu.eu - another devblog">m1chu.eu</a>
    • a
    • href="http://m1chu.eu/" title="m1chu.eu - another devblog"
    • m1chu.eu
  2. <strong>another devblog</strong>
    • strong
    • another devblog
101143 [a-z]* Abcą true
101142 [a-z]* abcą true
  1. abc
101141 [a-z]* abc true
  1. abc
101140 ^.*SYMBOL_\d+=\'(\S+).*$ SYMBOL_60='ABX 468684 523102' true
  1. SYMBOL_60='ABX 468684 523102'
    • ABX
101139 index2.exe {/.[a-z]}
false
101138 index2.exe /.[a-z]
false
101137 function onmouseover(event) {
Tip(/(.*?)/, WIDTH, 350);
}
function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101136 (function)( )(onmouseover)(\()(event)(\))( )(\{)( )(Tip)(\()(".*?")(,)( WIDTH)(,)( )(350)(\))(;)( )(\}) function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101135 (function)( )(onmouseover)(\()(event)(\))( )(\{)( )(Tip)(\()(".*?")(,)( WIDTH)(,)( )(350)(\))(;)( )(\}) function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101134 (function)( )(onmouseover)(\()(event)(\))( )(\{)( )(Tip)(\()(".*?"), WIDTH, 350)(\))(;)( )(\}) function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101133 /(function)( )(onmouseover)(\()(event)(\))( )(\{)( )(Tip)(\()(".*?")(,)( WIDTH)(,)( )(350)(\))(;)( )(\})/ function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101132 (function)( )(onmouseover)(\()(event)(\))( )(\{)( )(Tip)(\()(".*?")(,)( WIDTH)(,)( )(350)(\))(;)( )(\}) function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101131 oplog.log.^([0-4])-([0-2])-([0-2]).gz oplog.log.2012-02-09.gz
false
101130 oplog.log.^([0-9])-([0-9])-([0-9]).gz oplog.log.2012-02-09.gz
false
101129 oplog.log./^([0-9])-([0-9])-([0-9]).gz oplog.log.2012-02-09.gz
false
101128 oplog.log.([0-9])-([0-9])-([0-9]).gz oplog.log.2012-02-09.gz
false
101127 oplog.log./^([0-9]{2})-([0-9] oplog.log.2012
false
101126 oplog.log./^([0-9]{2})-([0-9] oplog.log false
101125 function onmouseover(event) {
Tip((.*?), WIDTH, 350);
}
function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101124 function onmouseover(event) {
Tip((".*?"), WIDTH, 350);
}
function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101123 ".*?" function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
true
101122 /(function)( )(onmouseover)(()(event)())( )({)( )(Tip)(()(".*?")(,)( WIDTH)(,)( )(350)())(;)( )(}) / function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false
101121 (function)( )(onmouseover)(()(event)())( )({)( )(Tip)(()(".*?")(,)( WIDTH)(,)( )(350)())(;)( )(}) function onmouseover(event) {
Tip("co to jest", WIDTH, 350);
}
false

« previous 1 2 3 4 5 6 7 8 9 103912 3913 next »