in Education by
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 Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
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.

Related questions

0 votes
0 votes
0 votes
    Object of which class is used to compile regular expression? (a) Pattern class (b) Matcher class (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    What does /[^(]* regular expression indicate? (a) Match one or more characters that are not open ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    A function definition expression can be called as __________ (a) Function prototype (b) Function literal (c) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    The class that represents the regular expressions is ________ (a) RegExpObj (b) RegExpClass (c) RegExp (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    The main difference between the variables declared with var and with let is __________ (a) var is confined ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    Which character in JavaScript code will be interpreted as XML markup? (a) ! (b) > (c) & (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    For what value does the keyCode property persists even when a Shift key is pressed for adding punctuation ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...