Alternatively just select what you want rather than deleting what you don't.
my $string = "Group: Group Name▼▼Role: Role Name";
while ( $string =~ /(Group|Role)\:\s+([\x00-\x7f]*)/g ){ print "$1 = $2\n"; };
In reply to Re: regex match unicode characters in ascii string
by poj
in thread regex match unicode characters in ascii string
by 3dbc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |