Ajax software
Free javascripts
↑
Main Page
Figure A-2
3.
Type a character or a string in the text box that contains the default text
Type your text here
, and
the JavaScript code will test whether or not there is a match for the regular expression pattern,
in this case
L
. Click the OK button.
4.
Inspect the alert box that is displayed to assess whether or not a match is present in the string
that you entered. Figure A-3 shows the message when a successful match is made. Figure A-4
shows the message displayed when the string that you enter does not match the regular expres-
sion pattern.
Figure A-3
Figure A-4
315
Appendix A: Simple Regular Expressions
bapp01.qxd:bapp01 10:47 315
Ajax software
Free javascripts
→