I have strings like this "$a477tr.: $bBìa mềm ; $c13x18.8cm" and I wanna get the all substrings after $a, $b, $c, … . The expected results (included space):
$a "477tr.: "
$b "Bìa mềm ; "
$c "13x18.8cm"
I’ve used regex101 and tried the pattern but the result I got is
$a "477tr.: $bBìa mềm ; $c13x18.8cm".
I’ve tried some other patterns but I couldn’t get the right results.
Please help.
>Solution :
(?<=\$[a-z0-9])(?<content>[^\$]*) should do the job.
: "${content}"\n – the substitution pattern if needed.