Guest User

Untitled

a guest
May 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.12 KB | None | 0 0
  1. use 5.010;
  2. my $string = 'asdgdefg;sgrsegsdf.sdfggsdf?argsgs';
  3. $string =~ s/^(.*)[.?!,:;][^.?!,:;]*$/$1/;
  4. say $string;
Add Comment
Please, Sign In to add comment