Re: [Tutor] Working with some sort of Timer

2011-02-17 Thread Alan Gauld
"Ryan Strunk" wrote def heartbeat(self): if self.round_clock_counter > self.round_clock_max: #todo, call end_round return if global_vars.player.fatigue < 100: global_vars.player.fatigue += 1 self.round_clock = delay(1, heartbeat) after the bell rings. At the same time,

[Tutor] regex questions

2011-02-17 Thread Albert-Jan Roskam
Hello, I have a couple of regex questions: 1 -- In the code below, how can I match the connecting words 'van de' , 'van der', etc. (all quite common in Dutch family names)? 2 -- It is quite hard to make a regex for all surnames, but easier to make regexes for the initials and the connecting wor

Re: [Tutor] regex questions

2011-02-17 Thread Steven D'Aprano
Albert-Jan Roskam wrote: Hello, I have a couple of regex questions: 1 -- In the code below, how can I match the connecting words 'van de' , 'van der', etc. (all quite common in Dutch family names)? You need to step back a little bit and ask, what is this regex supposed to accomplish? What i