Java Reference
In-Depth Information
Load the page into your browser, and you'll see the screen shown in Figure 9-5.
Figure 9-5
In the top box, you enter your regular expression. You can set the attributes such as global and case sen-
sitivity by ticking the tick boxes. The text to test the regular expression against goes in the Test Text box,
and the result is displayed in the Result box.
As a test, enter the regular expression \d{3}, which as you'll discover shortly, will match three digits.
Also tick the Global box so all the matches will be found. Finally, your test text is ABC123DEF456GHI789.
If you click the Test button, the code will test to see if there are any matches (that is, if the test text con-
tains three numbers). The result, as you can see in Figure 9-6, is that a match is found.
Figure 9-6
Search WWH ::




Custom Search