Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
On 01/12/2016 12:22 PM, Tobias Leich wrote: First of all, your fist line contains a bug, unless the topic variable ($_) is set to something meaningful. Because the regex after the 'and' matches against said topic. See: ~$ perl -E '$_ = "bar"; say ("foo" =~ /f+/ and /o/)' # "", so false ~$ perl

Re: Mooch a regex

2016-01-13 Thread ToddAndMargo
On 01/12/2016 12:47 PM, Bruce Gray wrote: On Jan 11, 2016, at 6:55 PM, ToddAndMargo wrote: Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and /${BaseTag}/ ) { push (

Re: Mooch a regex

2016-01-12 Thread Tobias Leich
First of all, your fist line contains a bug, unless the topic variable ($_) is set to something meaningful. Because the regex after the 'and' matches against said topic. See: ~$ perl -E '$_ = "bar"; say ("foo" =~ /f+/ and /o/)' # "", so false ~$ perl -E '$_ = "bar"; say ("foo" =~ /f+/ and /a/)'

Re: Mooch a regex

2016-01-12 Thread ToddAndMargo
On 01/11/2016 11:24 PM, Tobias Leich wrote: hi, what's in ${BaseTag}? Is it a regex rule or just a plain string? (Because that matters in Perl 6) It is a string and can vary. Would you show me both ways to keep me out of trouble? Am 12.01.2016 um 01:55 schrieb ToddAndMargo: Hi All, Would

Mooch a regex

2016-01-11 Thread ToddAndMargo
Hi All, Would yo all terribly mind if I ask how to do this Perl 5 regex in Perl 6? (I learn best by example.) if ( $ClickLine =~ /aes256/ and /${BaseTag}/ ) { push ( @WebClickHere, $ClickLine ); if ( $Line =~ m{select id=\"(.*?)[-]} ) { my