What is regex used for?



What is regex used for?..

Answer / Vikas

Regex (Regular Expressions) in Java are used for pattern matching and search-and-replace operations. They provide a way to describe a search pattern that can be complex and flexible, including wildcard characters and repetition patterns.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How can you set an applet’s height and width as a percentage?

1 Answers  


What are the differences between checked exception and unchecked exception?

1 Answers  


What is a class variable?

1 Answers  


what is business objects?

2 Answers  


What is the purpose of methodology?

1 Answers  


Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain

1 Answers  


Explain the difference between runnable and callable interface in java?

1 Answers  


why java does compile time polymorphism at run time ?

6 Answers   CTS, TCS,


What is the purpose of a default constructor?

1 Answers  


can we add two numbers without using arthematic operators? if possible how?

5 Answers   CTS,


Diff between Comparator and Comparable?

2 Answers   Aditya Birla,


import java.io.*; class Demo { public static void main(String args[]) { File f=new File("1234.msg"); String arr[]=f.list(); System.out.println(arr.length); } }

3 Answers   IBM, Ramco,


Categories