Dear all,
I need to be able to extract data from a variable. An example variable is shown
/opt/asdfgwdq/dasdasd/Data_to_be_extracted_is here
The data that I need to be extracted should be from the right most character (alpha-numeric) to the last letter (alpha-numeric) before the last forward slash "/".
In the above case the data I am after is
"Data_to_be_extracted_is here"
I tried the following :
$element_name = ( element_name =~ /.*\/(.*)$/);
Any help would be appreciated.
Thanks
I need to be able to extract data from a variable. An example variable is shown
/opt/asdfgwdq/dasdasd/Data_to_be_extracted_is here
The data that I need to be extracted should be from the right most character (alpha-numeric) to the last letter (alpha-numeric) before the last forward slash "/".
In the above case the data I am after is
"Data_to_be_extracted_is here"
I tried the following :
$element_name = ( element_name =~ /.*\/(.*)$/);
Any help would be appreciated.
Thanks