Which of the following are true about Regular Expressions in PHP?
- They are powerful tools for pattern matching and manipulating strings.
- They are used to perform mathematical calculations.
- They are case-insensitive by default.
- They can only match fixed patterns and cannot handle dynamic inputs.
The true statements about Regular Expressions in PHP are that they are powerful tools for pattern matching and manipulating strings. Regular Expressions provide a concise and flexible way to search, extract, and manipulate text data based on specific patterns. They can be used for tasks like data validation, string substitution, data extraction, and more. Regular Expressions are not used for mathematical calculations, are case-sensitive by default (unless specified otherwise with modifiers), and can handle dynamic inputs by using special characters and metacharacters to define flexible patterns. Learn more: https://www.php.net/manual/en/book.regex.php
Loading...