did anybody know a good regex tester for javascript (i think there are differents between php regex and javascript? right?)
Thanks in advance!
Peter
did anybody know a good regex tester for javascript (i think there are differents between php regex and javascript? right?)
Thanks in advance!
Peter
From my answer to this question:
I think you will find www.debuggex.com very valuable. Some advantages of debuggex are:

At the time of writing, it only supports Javascript. However, more languages are planned for the future.
A very good (though not free) regex tester, debugger and converter is RegexBuddy. It's especially handy if you need to convert regular expressions from one flavor to another, and there is a grep tool built in.

It's actually for Ruby but it's pretty good for testing most standard regex. It allows lookbehind though which Javascript does not implement.
For online testing try this realtime tester http://regextester.net/live-javascript-regex-tester.php
There are differences, yes. There can even be slight differences in how regex is implemented between browsers (e.g. IE's "JScript" variant vs. Firefox), surprise surprise.
You should find plenty of JS-oriented regex testing tools on the web though. For example, I've used this one in the past, which is written in Javascript:
You could try http://webdevweapons.com/regextester/ It is simple and easy to use with the regex docs along side it for quick reference.