Hi Tiago, Please reply to list if it's a mailing list post - http://shlom.in/reply .
On Thu, 18 Jun 2015 10:20:57 -0300 Tiago Hori <tiago.h...@gmail.com> wrote: > Folks, > > I have the following regex: $_ =~ /(Crosses)(.*)(misses=)(\d+)/s > > It does what I need to do in terms of matching, but I also want to use the > capture parenthesis. The data comes from tab-limited files and I use $4 to > grab the last digits of the match, however it is also matching the trailing > tab. I solved it by stripping of the tabs from the line, but I can figure > out why (\d+) is also matching the tab! > That sounds strange and perl should not do that. Can you post a self-contained and reproducing example that exhibits this behaviour? Sometimes reducing your code to the bare reproducing minimum helps in finding where the problem is. I could also use some information about your system (OS, distribution, perl, versions , CPU architecture, etc.) Regards, Shlomi Fish > T. > -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ http://www.shlomifish.org/humour/ways_to_do_it.html Chuck Norris can construct any logical expression using only AND gates. — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/