Well, what about looking at lib/item.php
preg_match : 19 times
preg_match_all : 1 time
ereg : 18 times
eregi : 2 times
About their syntax: as said, go Wiki
True, I also love this one :
- Code: Select all
$tooltip = preg_replace( '/\|c[a-f0-9]{6,8}(.+?)\|r/', '$1', $tooltip );
This one goes way beyond a basic PHP strpos("123456789","34") which returns just a 2.
One can consider the original English enUS locale as the stable and working one. So, mentioned keywords (character sequences) have to translated.
The nasty part: some thing can be said entirely different in German (and I know what I'm talking about, doing the same thing from French to English).
My point of view is that WoW didn't build a special French version of client and its servers. We're all natively 'enUS' in their databases, so all text is translated with rules have a localized version.
Up to all of us to find our own localized character sequences in the tooltip info to do the counting magic, and 'grouping up'.