Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

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

Ads

 
 

Share on Google+Share on Google+

laxmi
How to find the first 6 characters of string in regex?
0 Answer(s)      6 years and 9 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.

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Advertisements