in reply to Re: weird regex question
in thread weird regex question

hmm kinda makes sense, so how would i do the 5?

Replies are listed 'Best First'.
Re^3: weird regex question
by JavaFan (Canon) on Apr 25, 2012 at 17:12 UTC
    What do you mean, how would I do the 5?
      ohh nevermind i figured it out.. thanks :D
Re^3: weird regex question
by trizen (Hermit) on Apr 25, 2012 at 20:47 UTC
    1 and 5
    my $string = "hello world"; print $string =~ /^.{@{[!$[]}}(.{${\($]<<$]>>$])}})/; # 'ello '
    or print $]>>$?;