« larsolavtorvik.com moved
Beta of filmprices.com »

regex 0.9.6

Together with the server move I released a new version my regex tool.

  • Improved logging.
  • Fixed problem where long text strings would not fix their “box”.
  • Fixed some typos.
  • Fixed some misc minor bugs.

At the moment only PHP PCRE, PHP POSIX and JavaScript are enabled. Hopefully I will get the other up and running soon too, but I need help from my host to get the problems solved.

Tags: regex

This entry was posted on Saturday, October 4th, 2008 at 13:12:10 and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

27 Responses to “regex 0.9.6”

  1. spacer Jørund Ruud Says:
    October 9th, 2008 at 23:54:10

    Hei!
    Når jeg bruker verktøyet ditt under PHP preg_replace(), blir ikke innholdet i feltet replacement tatt med spacer

  2. spacer Lars Olav Torvik Says:
    October 15th, 2008 at 21:00:10

    Heisann.
    Takk for tilbakemeldingen. Viktig med tilbakemelding for at dette verktøyet skal fungere best mulig for alle som bruker det, meg inkludert spacer

    Det hadde sneket seg inn en feil ved preg_replace i forrige versjon. Denne feilen skal nå være rettet.

  3. spacer ewall Says:
    November 28th, 2008 at 22:59:11

    Thanks, Lars, this is an excellent tool!

    I do have a question, though: It only refreshes/retries the match when I am on the “PHP PCRE” tab. If I type into the “Perl” tab, it doesn’t change to tell me if the regex matches or not. Is that the expected behavior?

  4. spacer Lars Olav Torvik Says:
    January 15th, 2009 at 21:02:01

    I have some problems with the perl tester on the new server. I removed it for now. Hope to be able to reintroduce it again later when I get time to do some work on it.

  5. spacer Chibani Says:
    April 22nd, 2009 at 12:22:04

    Hi,
    I’ve been using your tools a few times. It’s a great tool to try regex ^^
    Unfortunately, it’s unavailable now …. May I help you hosting this project ?
    Don’t hesitate sending me an email if you’re interested spacer

    Best regards

  6. spacer Lars Olav Torvik Says:
    April 22nd, 2009 at 12:45:04

    Thanks for the offer hosting Chibani, but I think I’m good for now spacer

    The site was down earlier today, but everything should be back to normal now.

  7. spacer Chibani Says:
    April 22nd, 2009 at 16:58:04

    Ok,
    great job anyway spacer

  8. spacer Jesse Says:
    June 12th, 2009 at 21:43:06

    Lars.. your regex tool is simply perfect… i have been using it since you published it.. have you thought about making a desktop or widget version? i would like to have it available offline .. incase of emergencies heh..

  9. spacer MizardX Says:
    July 25th, 2009 at 06:45:07

    Could you allow multi-line regex’s when using the x-flag? Just swapping the input-box with a textarea works functionally. The exception is that the code-div don’t know how to deal with line-breaks.

  10. spacer hiacynt Says:
    October 16th, 2009 at 13:49:10

    Hey Lars, just wanted to say how grateful I am to you for this great tool. Since I am new to regexing, it helped me greatly to refine my formulas until I finally understood how they should properly look like. Thanks a bunch!

  11. spacer Rattus Says:
    October 27th, 2009 at 13:18:10

    Hi Lars,

    I like your RegEx tool, but I can’t find any way to change the pattern delimiters to a different character. It currently adds forward slashes automatically, whch breaks the XML parsing regex I am testing.

    Is this a limitation of v0.9.6?

  12. spacer frqz Says:
    November 12th, 2009 at 13:25:11

    great regex tool mate, by now the best online i ve seen. has i everything i needed. thank you a lot!

  13. spacer Mike Says:
    February 25th, 2010 at 14:00:02

    Thanks Lars, I’m grateful for this excellent tool.

    I feel it is the best regex tester available online.

    Mike

  14. spacer Ryan Says:
    March 23rd, 2010 at 23:28:03

    Have you ever considered adding a mod_rewrite tab? I use your tool A LOT and thought it would be a great addition.

  15. spacer SeeDoubleYou Says:
    January 13th, 2011 at 11:02:01

    Thanks man, this tool is amazingly helpful. Got it bookmarked right away! Are their plans on releasing a next version, and if so, what’s going to be added?

  16. spacer SeeDoubleYou Says:
    January 13th, 2011 at 11:04:01

    their = there in previous comment of course…

  17. spacer Lars Olav Says:
    January 24th, 2011 at 15:23:01

    Hi all.
    As you can see this blog is not really used any more, but I do read all the comments that you write here. The blog will probably be replaced with something different in the future, but do not worry since it will not affect the regex tool!

    At the moment I do not have any concrete plans for new versions of the regex tool. It is tempting to do a big rewrite since the code is starting to get old, but it still works so I have postponed it so far. Some of the suggestions here would be great additions like the possibility to change the pattern delimiters. So feel free to keep posting ideas!

    We will see what I have time for. If I manage to find some extra “programming time” I might suprise us all with a new release spacer

  18. spacer Jacob Christiansen Says:
    February 3rd, 2011 at 14:15:02

    Great tool. Great for developing regexps. Use it all the time. Keep up the good work.

  19. spacer gark87 Says:
    February 9th, 2011 at 04:07:02

    This is strange behavior of highlighter with following parameters:

    PHP PCRE
    preg_match_all

    Pattern (start and end slashes will be added when needed):
    a+b*
    Subject:
    azab

    it highlights in Matches _a_z_a_b, but shouldn’t it be _a_z_ab_?
    Result looks right: (a, ab).

  20. spacer Lucian Says:
    February 19th, 2011 at 14:27:02

    Hi,

    I am learning how to use the regular expressions (I program in PHP) and looking for a testing tool, I must say yours was the best out of the 3 I tested (the first 3 results in google). So, let me congratulate you for your work!
    There are anyway, some improvements (not bugs) that I can suggest you:
    - it is sometimes useful to see the error message (only when you get an error, not always!), eventually in the place where the “result” usually is placed.
    - the “Help PHP PCRE” is very long. I suggest you to place the symbol and the description on the same row, eventually with different colors, (like www.pagecolumn .com/tool/pregtest.htm).

    Thanks again for doing it and for not filling it with annoying banners!

  21. spacer JCommelin Says:
    March 5th, 2011 at 17:19:03

    Hi Lars,

    Thanks for your very good regex tool.
    I wondered, could you add functionality so I can choose my delimeters myself? At the moment you can only use the default ‘/’ but that is not handy when prototyping a regex for pathnames. I would like to be able to change it to one of “@#$” for example.

    JCommelin

  22. spacer Zamus Says:
    April 11th, 2011 at 17:59:04

    Thanks for the regex tool.

    add the following above the adword.

    If you like this tool, click on the advertisers!

    spacer spacer

  23. spacer oxman Says:
    September 28th, 2011 at 10:09:09

    Very nice one !

  24. spacer Damien Says:
    October 18th, 2011 at 11:09:10

    Dear Lars,

    Thanks for a very useful, well designed tool. I truly helped me out debugging a complex pcre.

    One suggestion for improvement, the generated php code does not properly escape the backslash “\” and the single quote “‘”. For example: pattern ‘a+\\’b+’ on subject string ‘aaa\’bbb’ is coded as preg_match(’/'a+\\’b+’/', ”aaa\’bbb”, $result); but that code is not valid - it should be preg_match(’/\\\’a+\\\\\’b+\\\’/', ‘\’aaa\\\’bbb\”, $result);

  25. spacer DaveDisaster Says:
    October 19th, 2011 at 17:16:10

    I use your regex tool on a regular basis. Incredibly useful utility, so thanks for the update.

    Seems to be a small issue with JavaScript code output for replace - the replacement string (or backref as the case may be) is not quoted, which will cause people problems if they copy/paste the code from your site.

    Keep up the good work!

  26. spacer Ronnie Says:
    October 24th, 2011 at 08:29:10

    I also love to use this tool, it makes regular expressions less hard.

    I can confirm what DaveDisaster said about the quotes in the js version.

    I also noticed a small other problem:
    Pattern:
    Replacement:
    Subject:

    The tool detects the pattern in the string, but the replacement is not visible. When i remove the first “<” in the replacement sting it works as it should.

    When i use the < in real javascript it works.

  27. spacer Ronnie Says:
    October 24th, 2011 at 08:32:10

    I also love to use this tool, it makes regular expressions less hard.

    I can confirm what DaveDisaster said about the quotes in the js version.

    I also noticed a small other problem:
    Pattern: “<meta charset=”(.*?)”/>”
    Replacement: “<meta http-equiv=”Content-Type” content=”text/html; charset=$1″ />”
    Subject: “<head><meta charset=”utf-8″/><title>”

    The tool detects the pattern in the string, but the replacement is not visible. When i remove the first “<” in the replacement sting it works as it should.

    When i use the < in real javascript it works.

    I see wordpress is filtering the HTML input so i replaced them with < and >

Leave a Reply

For spam filtering purposes, please copy the number 6608 to the field below:


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.