| Prof_Vince | segfaults at each run here |
| dazjorz | Hi ..again I'm having trouble with regexes, and that's a long while ago >_< |
| dkr | yeah, that's the old reliable one. my version is a regex for matching utf-8 encoded strings so it's a lot longer |
| Ani-_ | dkr: perl -e '$i = "i" x 30000; $i =~ /(?:[^@]|)*/gc;' also segfaults |
| dazjorz | ...wait, got it -_- eval: "onething++" =~ /(?:\((.+?)\)|(\S+))\+\+/g; [$1, $2] |
| buubot | dazjorz: [undef,'onething'] |
| dazjorz | eval: "(multiple words)++" =~ /(?:\((.+?)\)|(\S+))\+\+/g; [$1, $2] |
| buubot | dazjorz: ['multiple words',undef] |
| dazjorz | I thought they would be both in $1 |
| Ani-_ | dazjorz: no. That never happens. dazjorz: a new pair of () means a new variable. dazjorz: But perhaps you want $+? |
| bigjohnto | anyone have any idea why i am getting the make issue |
| dazjorz | Ani-_: Oh, no, I'll go with $1 || $2 |
| bigjohnto | http://pastebin.ca/471049http://pastebin.ca/471049 |
| buubot | The paste 471049 has been copied to http://erxz.com/pb/2491 |
| bigjohnto | http://pastebin.ca/471049 |
| buubot | The paste 471049 has been copied to: http://erxz.com/pb/2491 |
| bigjohnto | sorry |
| dkr | I "fixed" my code by using good ol' demorgan's law. instead of if ( /^(a|b)*$/ ) I did unless ( $_ !~ /a/ && $_ !~ /b/ ) |
| Ani-_ | eval: $i = "i" x 22784; $i =~ /(?:[^@]|)*/gc; |
| buubot | Ani-_: |
| Ani-_ | eval: $i = "i" x 30000; $i =~ /(?:[^@]|)*/gc; |
| buubot | Ani-_: |
| Ani-_ | buubot doesn't show segfaults? :/ eval: $i = "i" x 30000; $i =~ /(?:[^@]|@@)*/gc; |
| buubot | Ani-_: |
| Ani-_ | dkr: I really don't like that unless :/ |
| dkr | Ani-_: well, techinically my actual code still uses if and i just swapped the block with it's else block, :) |
| Ani-_ | dkr: if ($_ =~ /a/ || $_ =~ /b/) reads so much easier |
| rindolf | dkr: heh heh. |
| Chris62vw | just take off the $_ =~ parts |
| dkr | no, I had to negate it |
| Ani-_ | Not if you rewrite it. :) |
| dkr | a or b == not a and not b |
| Ani-_ | dkr: I think you mean: not(a or b) == not a and not b :) |
| dkr | er |