my home page

Bernard Jorion


You can use here both input controls below to test your Regular Expressions. They are a powerful tool with a rather cryptic syntax, whence the need for this small tool. The first input control must contain the pattern you want to use. Click on Pattern to register it. The title of the button will change to reflect your input. In the second input control, type a string to be matched to that pattern. Click on Test, and if the string does match, the result will be true, otherwise false. If you want to know more about these expressions, click on the link above.

Enter a pattern to test (eg. ^[0-9\.]*$)

Enter a string corresponding to the pattern (eg. 3.1416 )

Here you can convert an 'ActiveDirectory' time to a readable date. An 'ActiveDirectory' time is the number of 100 nanoseconds since the year 1601. Example: 129605562792584389 => 15 Sept 2011 AD

And finally a very simple page I use to evaluate JavaScript expressions. Just enter a valid javascript expression in the box below, and click on the button Alert + Eval to see the result.

Example: Type 2+2, click on Alert+Eval (or type Enter on IExplorer), and you will see a popup with the result (4). If you type on the button Eval, you will need to explicitly add the alert() command to see something. Example: type alert(2+2); and click on Eval.

Of course, you can type a whole javascript program inside the box (Tip: to go to the line, type Shift+Enter rather than just Enter).

Example: Type document.getElementById('container').style.backgroundColor="silver" to change the page background color to silver. You can also call user-defined functions: try mySetRandomColor(); to randomly change the background color. Best of all, do the same with mySetRandomColor (without the parenthesis) to see the function source code!

Enter an expression to evaluate

Feel free to download this page on your computer and adapt it for your need. All the javascript code is contained inside the page, you won't need to download anything else.