I need function or code in order to remove string
1st Query:
Example: "Oldest :15 m 14 s"---> I just want to verify Oldest,m and s
Example : Oldest:14t-----> I just want to verify Oldest and t
2nd Query:
Example: This is great (14)---> I just want "This is great" it can be This can be great day (17) then i need "This can be great day"
Please provide solution ASAP
Midhun TpPosted Sep 29, 2016, 3:28 AM
Rajeesh MenothPosted Sep 29, 2016, 12:47 AM
Madhanmohan DevarajanPosted Sep 28, 2016, 12:19 PM
var res = str.substring(1, 4);
The result of res will be:
var res = str.substring(0, str.indexOf("!"));
The result of res will be: