The
Expresso
program suggested by
OriginalGriff is really a
very good tool
. It has a design mode it which the regular expression can be built interactively and it can be tested.
Alternatively, if you want
to check immediately online
, the
http://regexhero.net/tester/[
^] is a
good online Regular Expression tester
for testing the regular expression and it also offers
help on building the regular expression
.
For the case stated in the question, since any character
(a to z or A to Z)
or
any number
must follow
/
then I think the following regular expression
/[a-zA-Z0-9]
or
/[\w-[_]]
can be used.
\w
matches alpha numeric character
a-z A-Z 0-9 and UnderScore.
Since,
under score
is not required in the present case it
is subtracted.
It can be tested at the above website.