svn[1733] Regex problem on Memberlist Alters

Posts from previous Beta sessions

svn[1733] Regex problem on Memberlist Alters

Postby Subxero » Mon Mar 24, 2008 9:21 pm

Hi there, i'm change to another server using php 5.1.6 and mysql 5.0.27

I try using:
/ALT-([\w]+)/
/ALT-([\p]+)/
/ALT-([\pL]+)/
/ALT-([\p{L}]+)/i
/ALT-([\p{L}]+)/iu

I can't associate any char with utf-8 chars like alt "Târner" with public note "ALT-Tärnêr" to main "Tärnêr".

What can do to get correct results with regex ?

(Sure its a PleegWat post ;) thanks for your time)
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

svn[1733] Regex problem on Memberlist Alters

Postby PleegWat » Mon Mar 24, 2008 10:43 pm

Hm, looks about right. You'll be wanting one of the last three. You have been doing upload relations (twice!) after each setting change right?

EDIT: Can you get me a site link, so I can look at your debug page?
Last edited by PleegWat on Mon Mar 24, 2008 10:46 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

svn[1733] Regex problem on Memberlist Alters

Postby Subxero » Tue Mar 25, 2008 5:18 am

I send you the link and password to test my site by a PM ;)
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

svn[1733] Regex problem on Memberlist Alters

Postby PleegWat » Tue Mar 25, 2008 1:51 pm

Recieved. It's funny: That regex should work on that php version, but it doesn't. Not sure what's causing it. I'm starting to think in the direction of it not being compiled in intentionally for some reason, but that's stupid.

The debug page is useful for stuff like this because it does on-the-fly parsing of the notes under the active regex, so you can see what the regex is actually producing. And it's just not processing the special chars...
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

svn[1733] Regex problem on Memberlist Alters

Postby Subxero » Tue Mar 25, 2008 9:21 pm

Well, because i get all "rare" thinks that should be working but not works xD

Also you can look the addon keys not showing lockpicking habilities from rogues.
Last edited by Subxero on Tue Mar 25, 2008 9:43 pm, edited 1 time in total.
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

Re: svn[1733] Regex problem on Memberlist Alters

Postby rrhode » Sun Mar 30, 2008 2:24 pm

I have this problem as well with the alt not updating relations to a main with a ø in his name. PHP 4.4.7 and MySQL 4.1.20.

In the update relations log it is cutting off the Main name before the ø. It looks like it should work but it isn't getting the full main name in there properly for some reason. It says on the alt for example:

Altname - Main: Themainsøname - Alt of Themains - Invalid main - Mainless alt

The alt is even indented like its an alt on the list but has a red MA beside it. Maybe thats why its indented though.

Also, just curious, how come we have to updated relations twice? Shouldn't it just update twice automatically?

One last thing... is it possible to make the main/alt relations based on the name or number of the rank? I saw a part somewhere but it doesn't seem to work. The rank is Alt but I cant figure out how to use just that.
rrhode
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Wed Dec 13, 2006 6:36 pm

svn[1733] Regex problem on Memberlist Alters

Postby PleegWat » Sun Mar 30, 2008 7:05 pm

You can't update just based on the rank, because it also needs to know exactly who the name is.
The display you describe is the standard displays for 'Mainless alts'.

The actual matching problem is a regex issue. You could try [\S]+ or even .+ instead of [\w]+, but those may well match too much text.
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: svn[1733] Regex problem on Memberlist Alters

Postby rrhode » Sun Mar 30, 2008 11:24 pm

Well there are lots of people with non english characters in their name. I think this thing should support it don't you?

And I am not sure why it isn't possible to use the guild rank while it compares the name. It can't just somehow compare the name at the same time as the guild rank? Maybe I can figure out some way to modify it if I can figure out where it does this main/alt relations at.
rrhode
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Wed Dec 13, 2006 6:36 pm

svn[1733] Regex problem on Memberlist Alters

Postby zanix » Mon Mar 31, 2008 12:30 am

MemebersList can only match players with with non English characters with php 4.4+ or 5.1+
This is a limitation in the regex/utf-8 matching before these php versions
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: svn[1733] Regex problem on Memberlist Alters

Postby rrhode » Mon Mar 31, 2008 12:48 am

I have PHP 4.4.7. So I tried your suggestion to replace \w with \S and it worked!

Thanks =)

Note: In my Officer Notes I have them formated for alts as Alt-TheAltName and for Mains it just says Main.
Last edited by rrhode on Mon Mar 31, 2008 12:52 am, edited 1 time in total.
rrhode
WR.net Apprentice
WR.net Apprentice
 
Posts: 22
Joined: Wed Dec 13, 2006 6:36 pm

svn[1733] Regex problem on Memberlist Alters

Postby Subxero » Mon Mar 31, 2008 2:10 am

With "\S" works for me fine...

But where is the problem of accept any char?
Last edited by Subxero on Mon Mar 31, 2008 2:11 am, edited 1 time in total.
Subxero - Priest 70 Holy - Asphelt Knight Officer - Zul'jin Horde.
User avatar
Subxero
WR.net Artisan
WR.net Artisan
 
Posts: 234
Joined: Thu Jul 06, 2006 4:08 pm
Realm: Zul'jin (PvE) - US

svn[1733] Regex problem on Memberlist Alters

Postby PleegWat » Mon Mar 31, 2008 3:39 am

I don't understand the question.
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


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron