How does regex work?



How does regex work?..

Answer / Km Pooja Yadav

Regular expressions (regex) in Java are a powerful tool for searching, matching, and manipulating text based on patterns. They use special characters to define the rules of what they should match.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a parameter example?

1 Answers  


Explain what are final variable in java?

1 Answers  


what is Remote Reference Layer ?

1 Answers  


public class Base { public void myMethod(int a,intb) {} } // Uses myMethod and then hides it. public class DerivedOne extends Base { private void myMethod(int a,int b); } will this compile or not .yes or no. why

2 Answers  


In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?

1 Answers   MCN Solutions,


Difference String and String Buffer

4 Answers  


What is externalizable interface?

1 Answers  


How will you load a specific locale?

1 Answers  


Explain method local inner classes ?

1 Answers  


class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?

7 Answers   HCL, TCS,


What is variable and example?

1 Answers  


Can we override a variable in java?

1 Answers  


Categories