in reply to Re^2: regex match unicode characters in ascii string
in thread regex match unicode characters in ascii string
Ok . try this
poj#!perl use strict; use HTML::Entities; use Data::Dump 'pp'; my $string = "Group: Group Name▼▼Role: Role Name"; $string = decode_entities($string); my @f=(); while ( $string =~ /(Group|Role)\:\s+([\x00-\x7f]*)/g ){ push @f,$2; }; pp \@f;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: regex match unicode characters in ascii string
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 | |
by poj (Abbot) on Jan 27, 2017 at 21:00 UTC | |
by 3dbc (Monk) on Jan 27, 2017 at 21:35 UTC | |
|