I have a string like : <a href="2021_03_19/">2021_03_19/</a> 19-Mar-2021 11:55 -
stored in a variable a
I tried to extract from it the sequence: 2021_03_19
, the second one after /">
sequence with the following script:
a=${a##'/">'}
a=${a%%'/</a'}
But the final result is the same string as the input.