I have several strings. Examples:
PK - Package
EA -- Each
AB - Solo Container
TB -- Tube
I need to get just the text to the right of the last dash. Sometimes there may be a single dash, sometimes there may be 2 dashes (shouldn't be any more). So basically, this regex would return:
Package
Each
Solo Container
Tube
I'm always woefully ignorant when it comes to regex...
Aucun commentaire:
Enregistrer un commentaire