#!/usr/bin/perl # http://perlmonks.org/?node_id=1164776 use strict; use warnings; my @answer; 'asdfgfhjkl' =~ /f.*j(?{push @answer, $&})^/; print "$_\n" for @answer;
In reply to Re: Return string that starts and ends with specific characters
by Anonymous Monk
in thread Return string that starts and ends with specific characters
by gilthoniel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |