1.

The regular expression to match any one character not between the brackets is __________(a) […](b) [^](c) [^…](d) [\D]This question was addressed to me during an online interview.This interesting question is from Pattern Matching and Regular Expressions topic in portion Classes and Modules in JavaScript of JavaScript

Answer»

The correct ANSWER is (C) [^…]

For explanation I would SAY: RegExp DEFINES a special set of character that is used to do MANIPULATION on strings and other variables. The [^…] character class is used to match or draw any one character not between the brackets.



Discussion

No Comment Found

Related InterviewSolutions