in reply to regex match unicode characters in ascii string
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"; };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex match unicode characters in ascii string
by 3dbc (Monk) on Jan 27, 2017 at 20:17 UTC | |
by poj (Abbot) on Jan 27, 2017 at 20:22 UTC | |
by 3dbc (Monk) on Jan 27, 2017 at 20:40 UTC | |
by poj (Abbot) on Jan 27, 2017 at 20:48 UTC | |
by 3dbc (Monk) on Jan 27, 2017 at 20:53 UTC | |
|