Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Regex Literal Characters

Most characters can simply be written directly in a regular expression because they're easy to write in a Java string and they have not special meaning to the regular expression engine.

Tutorial Details:

Characters that can't be typed directly
Java provides several ways to represent characters in a string.
Using backslash for specific characters.
Unicode representation.
\\ The backslash character
\t The tab character ('\u0009')
\n The newline (line feed) character ('\u000A')
\r The carriage-return character ('\u000D')
\f The form-feed character ('\u000C')
\a The alert (bell) character ('\u0007')
\e The escape character ('\u001B')


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/data/strings/40regular_expressions/22sum-regex-literals.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Regex Literal Characters

View Tutorial:
Regex Literal Characters

Related Tutorials:

Build your own caching mechanisms with volatile collections - JavaWorld June 1999
Build your own caching mechanisms with volatile collections - JavaWorld June 1999
 
Programming XML in Java, Part 1 - JavaWorld March 2000
Programming XML in Java, Part 1 - JavaWorld March 2000
 
Printing in Java, Part 2 - JavaWorld December 2000
Printing in Java, Part 2 - JavaWorld December 2000
 
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
C#: A language alternative or just J--?, Part 2 - JavaWorld December 2000
 
Build your own languages with JavaCC - JavaWorld December 2000
Build your own languages with JavaCC - JavaWorld December 2000
 
Jato: The new kid on the open source block, Part 3 - JavaWorld May 2001
Jato: The new kid on the open source block, Part 3 - JavaWorld May 2001
 
Matchmaking with regular expressions - JavaWorld July 2001
Matchmaking with regular expressions - JavaWorld July 2001
 
Facilitate form
Facilitate form processing with the Form Processing API
 
XML documents on the run, Part 1
XML documents on the run, Part 1
 
Java's character and assorted string classes support text-processing
Java's character and assorted string classes support text-processing
 
Got resources?
Got resources?
 
Does an object exist if you can't test its identity?
Does an object exist if you can't test its identity?
 
JEP - Java Mathematical Expression Parser
JEP - Java Mathematical Expression Parser JEP is a Java API for parsing and evaluating mathematical expressions. With this library you can allow your users to enter an arbitrary formula as a string, and instantly evaluate it. JEP supports user defined
 
Struts best practices
Multiple options are available for solving problems with Struts. When deciding among these alternatives, the choice must be based on parameters such as the scale of work and availability of time.
 
They just work
Writing CSV files: CSVPrinter This class makes it easy to output CSV. Given values, it will automatically determine if they need to be quoted and escape special characters. Comments can easily be written and correct line beginnings will be added.
 
JSP Tags
JSP tags do not use <%, but just the < character. A JSP tag is somewhat like an HTML tag. JSP tags can have a "start tag", a "tag body" and an "end tag". The start and end tag both use the tag name, enclosed in < and > characters. The end starts with
 
Asprise OCR Java SDK v2.1
Asprise OCR Java SDK enables you to equip your Java applications (Java applets, web applications, standard applications, J2EE enterprise applications) with optical character recognition ability.
 
Domain Registration Guide
Domain Registration Guide Domain Registration Guide What is Domain? Internet is the large network of computers. On the Internet there should be some way to identify the computers. Domain name is the solution for this. Domain Name is the unique
 
Welcome to Free search engine secrets: webmaster's guide to search engine registration!
Welcome to Free search engine secrets: webmaster's guide to search engine registration! Welcome To Webmaster's Guide T his site is dedicated to Web related services. Here you can find tools and suggestions to promote your sites to several search
 
Using DTrace to Profile and Debug A C++ Program (Technical Article)
In this test case, the DTrace capability in the Solaris 10 OS is used to identify an error common to C++ applications -- the memory leak.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.