Regular Expression

A text pattern used to find, validate, or replace matching characters.

What is Regular Expression in Java?

Regular Expression — A text pattern used to find, validate, or replace matching characters.

class OrderId {
    boolean isValid(String value) {
        return value.matches("ORD-\\d{4}");
    }
}

Level: Freelancer · More Java terms at this level

Updated

In other subjects