Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
Explain Which of the following matches nonword character using regular expression in java?
Home
Education
Explain Which of the following matches nonword...
asked
Feb 24, 2022
in
Education
by
JackTerrance
Which of the following matches nonword character using regular expression in java? (a) \w (b) \W (c) \s (d) \S The question was asked during an interview. Question is from Regular Expression in portion Regular Expressions of Java Select the correct answer from above options
java
regular
ex
1
Answer
0
votes
answered
Feb 24, 2022
by
JackTerrance
Best answer
Right answer is (b) \W The explanation is: \W matches nonword characters. [0-9], [A-Z] and _ (underscore) are word characters. All other than these characters are nonword characters.
Related questions
0
votes
Q: Explain Which of the following matches end of the string using regular expression in java?
Which of the following matches end of the string using regular expression in java? (a) \z (b) \\ (c ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain What is the significance of Matcher class for regular expression in java?
What is the significance of Matcher class for regular expression in java? (a) interpretes pattern in the string ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Object of which class is used to compile regular expression?
Object of which class is used to compile regular expression? (a) Pattern class (b) Matcher class (c) ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which capturing group can represent the entire expression?
Which capturing group can represent the entire expression? (a) group * (b) group 0 (c) group * or ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which of the following is not a class of java.util.regex?
Which of the following is not a class of java.util.regex? (a) Pattern class (b) matcher class (c) ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which of these package is used for text formatting in Java programming language?
Which of these package is used for text formatting in Java programming language? (a) java.text (b) java. ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Which of the following matches nonword character using regular expression in java?
Which of the following matches nonword character using regular expression in java? (a) \w (b) \W ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Oct 24, 2021
in
Education
by
JackTerrance
essential-javascript-interview-questions
javascript-interview-questions
javascript-interview-questions-and-answers
javascript-questions-for-practice
java-script-mcq-quiz
javascript-quiz-
javascript-multiple-choice-questions
javascript-mcq-with-answers
0
votes
Q: Explain Which of this class can be used to format dates and times?
Which of this class can be used to format dates and times? (a) Date (b) SimpleDate (c) DateFormat (d ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which of these method returns an instance of DateFormat that can format time information?
Which of these method returns an instance of DateFormat that can format time information? (a) getTime() (b) ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which of these class allows us to define our own formatting pattern for dates and time?
Which of these class allows us to define our own formatting pattern for dates and time? (a) DefinedDateFormat ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time?
Which of these formatting strings of SimpleDateFormat class is used to print AM or PM in time? (a) a (b ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain groupCount reports a total number of Capturing groups.
groupCount reports a total number of Capturing groups. (a) True (b) False I had been asked this question ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain What does public int end(int group) return?
What does public int end(int group) return? (a) offset from last character of the subsequent group (b) ... Regular Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Explain what does public String replaceAll(string replace) do?
what does public String replaceAll(string replace) do? (a) Replace all characters that matches pattern with a ... Expressions of Java Select the correct answer from above options...
asked
Feb 24, 2022
in
Education
by
JackTerrance
java
regular
ex
0
votes
Q: Which of the following matches end of the string using regular expression in java?
Which of the following matches end of the string using regular expression in java? (a) \z (b) \\ ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked
Oct 24, 2021
in
Education
by
JackTerrance
essential-javascript-interview-questions
javascript-interview-questions
javascript-interview-questions-and-answers
javascript-questions-for-practice
java-script-mcq-quiz
javascript-quiz-
javascript-multiple-choice-questions
javascript-mcq-with-answers
...