Search found 2 matches

by badhack
Mon Mar 07, 2011 7:30 pm
Forum: General
Topic: regex unexpected match of multiple chars in { brackets }
Replies: 3
Views: 288

What you tried wouldn't work in Perl either. Try
\$gamestatscache{\$[[:alpha:]]+}{
or
\$gamestatscache{\$[a-z]+}{

Thanks, I know that Perl syntax is different ;)

I keep forgetting that [:alpha:]+ does not work in TextPad as one might expect but that they are character class operators only ...
by badhack
Mon Mar 07, 2011 5:52 pm
Forum: General
Topic: regex unexpected match of multiple chars in { brackets }
Replies: 3
Views: 288

regex unexpected match of multiple chars in { brackets }

Consider these two lines of code:

$gamestatscache{$player}{$svariant}{wins} = 0;
$gamestatscache{$player}{$svariant}{losses} = 0;

In Textpad 5.4.2 I want to match the "$gamestatscache{$player}{" part which did not work. To simplify the problem I tried to match "$gamestatscache{$player" with ...