Class of the Month: JDK 1.4 Supports Regular Expressions North Dakota

Regular expressions are a useful programming tool. The fact that Java now natively supports them simplifies many programming tasks that used to require cumbersome code.

Local Companies

PCs For Parents
800-998-8652
1506 16th St S
Fargo, ND
Atlas Business Solutions, inc. (ABS)
800-874-8801
3330 Fiechtner Drive SW
Fargo, ND
Cross Consulting Group
(701) 842-4000
1204 4th Ave NE
Watford City, ND
Consolidated
(701) 483-4000
Dickinson, ND
Ockert Research & Development
(701) 984-2452
1119 Highway 30
Cathay, ND
Intelligent InSites
(701) 893-2080
102 Broadway
Fargo, ND
Atlas Business Solutions
701-235-5226
3330 Fietchner Dr.
Fargo, ND
Advanced Orthopedics of North Dakota PC
(701) 483-4000
Dickinson, ND
Jt Solutions
(701) 825-6638
573 Hancock St
Pembina, ND
SE Service & Consulting
(701) 237-4768
1445 14 1/2 St S
Fargo, ND

provided by: 
Originally published at Internet.com


Regular expressions have been around for a long time. They come in very handy for text processing tasks. Some attribute the success of Perl to its superb ability of handling regular expressions. While there have been third-party classes that support regular expressions, with JDK 1.4, Java provides native support via the java.util.regex package.

Piroz Mohseni

Usage of regular expressions boils down to two components:

1. Defining the regular expression. This is a pattern that describes what is to be matched. 2. Applying the regular expression on a sequence of characters. Determining whether a match was found or not, successive finds, and replacements are some of the common operations involving regular expressions.

The Pattern class focuses on the first component. You use this class to define a regular expression. By representing the regular expression as an object, you can reuse the expression in your code. This is particularly useful in cases where you need to apply the same expression to multiple strings (e.g., line-by-line processing of a text file). The following line creates a pattern based on the regular expression "[0-9]" which matches any digits from 0 to 9. This pattern can also be represented as "/d"...

Read article at Internet.com site

Featured Local Company

Intelligent InSites

7018932080
102 Broadway
Fargo, ND


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML