Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions How to find the first 6 characters of string in regex?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


laxmi
How to find the first 6 characters of string in regex?
0 Answer(s)      4 years and 2 months ago
Posted in : Java Interview Questions


How to find the first 6 characters of string in regex.

I know the Syntax is to String.substring(strtindex, endindex-1)

For first six characters is:

String test="Welcometothis";

        System.out.println(test.substring(0,7));

But i need the syntax to find the first 6 characters of string in regex using java.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com