Javaregex 简明教程

Java Regex Tutorial

Java 为通过正则表达式进行模式匹配提供了 java.util.regex 包。

Java provides the java.util.regex package for pattern matching with regular expressions.

Audience

本参考已为初学者准备,以帮助他们理解 Java.util.regex 包中的所有方法相关 的基本功能。

This reference has been prepared for the beginners to help them understand the basic functionality related to all the methods available in Java.util.regex package.

Prerequisites

在开始使用此参考中给出的各种类型的示例进行练习之前,我假设您已经了解基本的 Java 编程。

Before you start doing practice with various types of examples given in this reference, I’m making an assumption that you are already aware of basic Java Programming.