September 2024
Beginner to intermediate
985 pages
35h 37m
English
Regular expressions are specific character patterns that are used to check whether a text (or a string) contains a specific combination of characters. For working with regular expressions, the RegExp type is available; strings also offer different methods to evaluate regular expressions. This means that you have a total of six different methods at your disposal:
The test() method of the RegExp type checks whether a specific character pattern occurs in a string and returns a corresponding Boolean value.
The exec() method of the RegExp type searches for occurrences of a respective character pattern and returns them as an array.
The match() method of strings searches a string for occurrences matching ...
Read now
Unlock full access