Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 22:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PM ID von E*Pvpers

Discussion on PM ID von E*Pvpers within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
amnesi's Avatar
 
elite*gold: 25
Join Date: Jun 2010
Posts: 1,076
Received Thanks: 290
PM ID von E*Pvpers

hey ich wollte fragen ob die PM ID von E*Pvpers(unten rot markiert) immer 7 stellig ist?

ich wollte nämlich etwas mit Stringleft und StringBetween raussuchen(aus dem Quelltext) und dafür wollte ich halt wissn ob die PM id immer siebenstellig ist...

Hier der Ausschnitt aus dem Quellcode ich möchte das "AW: Frage" herrausfiltern

Code:
<a rel="nofollow" href="private.php?do=showpm&[COLOR="Red"]pmid=3703226[/COLOR]">AW: Frage</a>
amnesi is offline  
Old 11/16/2010, 13:28   #2
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
warum nicht stringregexp?
wäre doch viel einfacher...
lolkop is offline  
Old 11/16/2010, 15:51   #3
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by lolkop View Post
warum nicht stringregexp?
wäre doch viel einfacher...
Dast stimmt und weil sich die meisten damit nicht wirklich auskennen, hier ein Beispiel:
PHP Code:
#include<Array.au3>
$source='<a rel="nofollow" href="private.php?do=showpm&pmid=3703226">AW: Frage</a>Irgendetwas anderes... <a rel="nofollow" href="private.php?do=showpm&pmid=1234">AW: Frage</a>Irgendetwas... <a rel="nofollow" href="private.php?do=showpm&pmid=745745">AW: Frage</a>'
$found=StringRegExp($source,'pmid=(\d+)"',3)
_ArrayDisplay($found
Shadow992 is offline  
Thanks
2 Users
Old 11/16/2010, 15:54   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 2,911
Received Thanks: 1,376
die pmid in vbulletin gibt an an welche ID eben die Nachricht hat. Logisches Denken unso

Bald wird sie 8stellig sein.
Agent/Zero is offline  
Thanks
1 User
Old 11/16/2010, 15:54   #5
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by Shadow992 View Post
Dast stimmt und weil sich die meisten damit nicht wirklich auskennen, hier ein Beispiel:
PHP Code:
#include<Array.au3>
$source='<a rel="nofollow" href="private.php?do=showpm&pmid=3703226">AW: Frage</a>Irgendetwas anderes... <a rel="nofollow" href="private.php?do=showpm&pmid=1234">AW: Frage</a>Irgendetwas... <a rel="nofollow" href="private.php?do=showpm&pmid=745745">AW: Frage</a>'
$found=StringRegExp($source,'pmid=(\d+)"',3)
_ArrayDisplay($found
da sich \d nur auf zahlen bezieht, und mit + alle sich an dieser stelle befindlichen zeichen des typs \d gelesen werden, würde 'pmid=(\d+)' als pattern vollkommen ausreichen =)
lolkop is offline  
Thanks
2 Users
Old 11/16/2010, 16:23   #6
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
Auf Epvp bezogen ja... nur allgemein würde ich pmid=(.+)" verwenden.
mipez is offline  
Thanks
1 User
Old 11/16/2010, 19:00   #7
 
amnesi's Avatar
 
elite*gold: 25
Join Date: Jun 2010
Posts: 1,076
Received Thanks: 290
Danke leute habe es anders gelöst^^
aber danke für das Beispiel mit Stringregexp
amnesi is offline  
Reply


Similar Threads Similar Threads
Thanks an E*PvPers
11/02/2009 - Main - 16 Replies
Hallo Liebe Com Ich möchte mich hier Bedanken an die lieben Mods und Guardians die uns helfen, Sie tuhen viel für uns ohne sie wären wir alle am spammen oder was weiss ich. Und ich fand mal gut wenn hier jeder was positives schreiben würde, was er gut findet an E*PvPers. Also ich fange mal an :) Ich finde die Community hier einfach atemberaubend alle sind freundlich und hilfsbereit, wenn man hilfe braucht dan kriegt man die hier auch und wen man eine frage stellt kriegt man eine antwort....
Hello pvpers!
11/08/2008 - Say Hello - 1 Replies
Hope we can find same language here.gl hf to all with hacks:mofo:
Hi to all e-pvpers XD
10/16/2008 - Say Hello - 2 Replies
Hi all, I'am a german girl and wanna know much 'bout Flyff buggs and p-servers, 'cause I'am going to make one ^-^ Hope to find some friends and you can call me Yuki if u want. Everyone calls m tad dunno why XD Greetings, Yuki :handsdown:
y0 pvpers
09/28/2008 - Lineage 2 - 2 Replies
hi guys whats up? :band: if anyone have IG bot cracked plz upload it assap :handsdown: Do your best keep the good work :rolleyes:
Hello PvPers
11/27/2007 - Say Hello - 0 Replies
I just want to say to all that this is a high quality site and the members on it are doing a good job! Keep up the good work!



All times are GMT +1. The time now is 22:54.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.