perlbaski has asked for the wisdom of the Perl Monks concerning the following question:
I need help understanding what qr does.
I have this expression qr/^data_123$/i and I want it match the string exactly, but it does not seem to work. When I tried to print the expression, I see that it is getting compiled into ?^i:^data_123$. I dont understand why, "?^i" part got added, all I want is to match data_123 to match exactly. How do I do this.?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compiled regular expression using qr
by GrandFather (Saint) on Oct 15, 2014 at 20:28 UTC | |
by perlbaski (Sexton) on Oct 15, 2014 at 20:39 UTC | |
by GrandFather (Saint) on Oct 15, 2014 at 21:02 UTC | |
|
Re: Compiled regular expression using qr
by LanX (Saint) on Oct 15, 2014 at 20:29 UTC | |
by perlbaski (Sexton) on Oct 15, 2014 at 20:48 UTC | |
by AnomalousMonk (Archbishop) on Oct 15, 2014 at 21:25 UTC | |
by perlbaski (Sexton) on Oct 15, 2014 at 22:32 UTC | |
by AnomalousMonk (Archbishop) on Oct 15, 2014 at 23:54 UTC | |
by ikegami (Patriarch) on Oct 15, 2014 at 23:05 UTC |