How to match a regular expression against a string?
Answers
Answered by
0
Methods of RegExp and String
______________________________
✏️To search for all matches
✏️To search for the first match only
✏️To replace all matches
✏️To split the string by a separator
✏️The important limitation search only finds the first match.
✏️If a part of the pattern is delimited by parentheses (...) , then it becomes a separate element in the array.
______________________________
✏️To search for all matches
✏️To search for the first match only
✏️To replace all matches
✏️To split the string by a separator
✏️The important limitation search only finds the first match.
✏️If a part of the pattern is delimited by parentheses (...) , then it becomes a separate element in the array.
Similar questions