Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, Below are some of file names:
1)ut_full_load_rta_fast_1_23_20182312_1523.log
2)ut_fullload_first_extract_1_20183101_2356.log
3)ut_catload_dyanamic_overload_fan_2_20182107_1245.log
and so on
My required output in excel to get Table Names from above file names as below respectively:
1)rta_fast
2)first_extract
3)dyanamic_overload_fan
Can anyone help on this?
Hi,
Thanks for Reply
I am getting perfect output but there are some other files which look like:
ut_load_fast_read_20181212_1524
Required Table Name : fast_read
replaceAll("ut_.*load_", "").replaceAll("_\\d{0,}_.*","");
try this
Hi,
Thanks for reply.
This Solution worked.
Can you please explain what does replaceAll("_\\d{0,}_.*","") mean
Thanks,
Raj
it replaces all substrings of type <_><any number of digits><_><anything after that> with <""> i.e. empty string.
regards
chandra kant