Computer Science, asked by vishnunair7879, 1 year ago

How to match a regular expression against a string?

Answers

Answered by khushi769
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.
Similar questions