I have a string stored in variable say
$input = 999 success: id:10.123/AVC13231 | ark:/asf4523/2425fsaf
I want to select only a part of a string “10.123/AVC13231”
say i want to achieve this:
$output = 10.123/XXXXXXXX ;
and no other part $input should be selected even the id: part
The value 10.123 is constant and the value AVC13231 changes dynamically.
How can i achieve the above?
Here’s a solution.