on
Which of the following is correct about the regexp "\d"?
Select one:
O A Quantifier represents a non-digit number
O A Meta Character represents a non-digit number
O A Meta Character represents a digit(0-9)
O A Quantifier represents an integer value
Answers
Answered by
13
Answer:
A Meta Character represents a digit(0-9)
Answered by
0
The correct answer is
A Meta Character represents a non-digit number
The RegExp \D Metacharacter in JavaScript is used to go looking for non-digit characters
i.e all the characters except digits. it's the same as [^0-9].
- This instance searches the non-digit characters within the whole string.
- A regex pattern matches a target string. The pattern consists of a sequence of atoms. associate atom may be a single purpose at intervals the regex pattern that it tries to match to the target string.
- The best atom is literal, however, grouping components of the pattern to match an atom would force mistreatment ( ) as metacharacters.
- In JavaScript, a Regular [removed]RegEx is an associate object that describes a sequence of characters used for outlining a research pattern.
- For example, /^a...s$/ The higher than code defines a RegEx pattern. The pattern is any 5-letter string beginning with a and ending with s.
- Regular expressions are helpful in search and replace operations. the everyday use case is to appear for a substring that matches a pattern and replace it with one thing else.
- Most Apis mistreatment regular expressions permit you to reference capture teams from the search pattern within the replacement string.
#SPJ3
Similar questions