• +91 9723535972
  • info@interviewmaterial.com

Regular Expressions Interview Questions and Answers

Question - What is character class subtraction in Regular expressions?

Answer -

Want to exclude set of character from matched text then use character class subtraction.

syntax :  [Base_group -[Exclude_group]]

[0-5-[23]]

given input data array is  {"12","145",""1054}

output is array is  {"145",""1054} 2 excluded so that "12" not getting selected.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners