Yet another regex problem

Posts from previous Beta sessions

Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 7:48 pm

Hi, sorry to bother you about another regex problem (I've read so much posts about that) but I can't figure out what's going on.

(I also apologize about my English, I'm just a regular french guy ^^)

My roster can be seen at http://www.hadd.fr/runaway/
The problem is that one of the character's name is Egnäel (notice the ä)
When I refresh main/alts relationships, everything works fine, except for this character : it says for example :
Ylidarielle - Main: Egn - Alt of Egn - Invalid main - Main - Main without alts

I tried the ([\pL]+) instead of the ([\w]+) but then when I refresh it blows up the relationships and does things like that :
Irwynn - Main: P - Alt of P - Invalid main - Main - Main without alts
(I don't know if there is any link but the main of every character who does like I just said has a "P" in their names)

So I naturally checked my Php version (to avoid another useless post ending with "you need a higher version") but as you can see at http://www.hadd.fr/runaway/phpversion.php I run php5.2.4, it should be enough, doesn't it ?

Thanks
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 8:16 pm

You're running an old build, and you've been messing with your files (hacking sql debug off). I can't debug your system like this.
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 8:22 pm

woops indeed, I forgot that (I had so much guildies whining about thoses messages that I commented a few lines)
Very sorry about that

Edit : i'll try to install the lastest version ASAP
Last edited by wasitum on Mon Jan 28, 2008 8:36 pm, edited 1 time in total.
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 8:48 pm

No idea what's causing this, to be honest. The configuration looks sound.

Try using /iu (instead of /i)
Try using \p{L} instead of \pL
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 9:13 pm

I just tried, didn't work...

But I noticed something weird ... One of the character's name is Eléanôre, like the other one, it doesn't make the correct links, all the alts get the same message : Main : El - Alt of El
=> that should mean that it block on the "é" character

However, another person's name is Panobémix, it also contains an "é" but with this one everything works fine...

I guess some people's destiny doesn't include alts ^^
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 9:26 pm

Panobemix is easy to clear up: His main name is spelled without accents in the officer note. This is due to the mysql config bug which makes those be considered equal.

Your per-guild config is set to \w by the way, shouldn't that be \pL?
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 9:30 pm

I've put it back to \w in order to have at least some good main/alt relationships instead of none

You're absolutely right about Panobémix, which makes me think I should try to write everyone without accents in the officer note, maybe it will solve it all.
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 9:34 pm

No, that'll break it when you upgrade to the revision in which the mysql bug is fixed.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

(solved) Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 9:39 pm

Tried, IT WORKS !
Thanks for you help, really.

(By the way, I'm really impressed by the speed of your replies ! nice job)

Edit : I've just seen your message, I will put it back the way it was
Last edited by wasitum on Mon Jan 28, 2008 9:43 pm, edited 1 time in total.
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 9:56 pm

Ok I've upgraded and put the notes back the way they were.

However, the links with Panobémix are still up, despite of the lack of accents in the officer note.

Shoudn't it NOT work or did I understand your last post wrong ?
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 10:28 pm

Well, it seems none of them work right now again...
I think it was the /iu that did it?

And I've just looked it up, the mysql config syntax fix is in 1556, so that's not in the public builds yet.
Last edited by PleegWat on Mon Jan 28, 2008 10:30 pm, edited 1 time in total.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 10:46 pm

weeeeell that's true ... it's getting strangier

Moreover, I have an error I didn't have earlier : in the configuration page, section main/alt relationship (where you type the regex), it says :


lib/functions.lib.php
Warning line 1182: preg_match() [function.preg-match]: Compilation failed: missing ) at offset 19
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am

Yet another regex problem

Postby PleegWat » Mon Jan 28, 2008 11:43 pm

I think that's a known issue that's fixed in SVN.

We really need a new build.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: Yet another regex problem

Postby wasitum » Mon Jan 28, 2008 11:52 pm

I'll keep an eye on it, as soon as the new build is out I'll try it out and keep you posted.

thanks anyway
wasitum
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Tue Jul 24, 2007 12:27 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron