Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

WebPerl Regex Tester (beta)

by haukex (Canon)
on Sep 04, 2018 at 19:27 UTC ( #1221705=CUFP: print w/replies, xml ) Need Help??

I recently published a beta of WebPerl, and now I've written my first full web app with it: a browser-based regex tester.

Since WebPerl is a full build of Perl, you have the full power of core Perl at your disposal, and it runs entirely in the browser - unlike some other online regex testers, which either run perl on a server, or only support PCRE (Perl Compatible Regular Expressions). It should work in modern browsers like Firefox and Chrome (not tested in IE yet, it might have issues there). Try it out, and let me know what you think, and report any issues you might find. I'd also be happy to accept issues and patches on GitHub. Please consider it a beta.

http://webperl.zero-g.net/regex.html
(It may take a few seconds to load and initialize, WebPerl is currently a ~4MB download, but once it's in your cache it should be fine.)

You can even create URLs to examples, here I'll use that to show off some features:

Replies are listed 'Best First'.
Re: WebPerl Regex Tester (beta)
by LanX (Archbishop) on Sep 05, 2018 at 02:17 UTC
    Wow!

    You know, you could use this technology to build a training site for Perl with interactive programming challenges...

    (/me getting big eyes!)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      I think this would be a really good use of the technology, and beneficial to perl, able to try things/do exercises in browser.

        We could combine it with perlmonks ... so that XP "whores" write lessons, editors link them to learning trails and students can ask questions linked to lessons.

        If I only had a local copy of the monastery's code for experimenting with a local installation ...

        On another note: I had to design a Perl training recently and wrote a mail with a list of self assesment questions to my colleagues.

        I'll try to translate it today and post it under meditations.

        Yesterday I was confronted with a freelancer who didn't know what a "hash" is, no matter how I named it ... OO

        (Would be a bless if I could simply send a link to a training lesson.)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      Thanks! And yes, it could certainly be used for something like that. A simplified version of the "mini IDE" that's included could be embedded in pages with example code. (I myself unfortunately won't have too much time to do anything like that soon*, I'll most likely be using WebPerl for another project for the rest of the year. Update: But I'd be happy to help, of course! :-) )

      * Update 2: Nevermind :-)

Re: WebPerl Regex Tester (beta)
by 1nickt (Abbot) on Sep 05, 2018 at 01:45 UTC

    Most impressive, Hauke, congratulations!


    The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://1221705]
Approved by marto
Front-paged by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2018-12-17 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many stories does it take before you've heard them all?







    Results (73 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!