This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

string spliting by marks...

Old posts that have not been replied to for several years.
Locked
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

string spliting by marks...

Post by GodOfSuicide »

string splitting based on texts found...

i have an one-line string but only require a little part of it :

xahdasdasdasdasdurl=http://someurl.domain/..[b]&PHPSESSID[/b]=somesessionid

and i need exactly this http://someurl.domain/.. part of the string, and url= bzw. >&PHPSESSIDare the markers that show that the searched string is direclty inbetween of them...

i think this has to be done with lindex "url=" $string or simular, but i dont exactly know how to use this....
M
MORA
Voice
Posts: 10
Joined: Mon Apr 15, 2002 8:00 pm

Post by MORA »

regexp ".*url=(.*)&PHPSESSID" "xahdasdasdasdasdurl=http://someurl.domain/..&PHPSESSID=somesessionid " a url

then $url holds the url
MORA @ EFNET #egghelp =)
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

seams to work on .tcl @ DCC..

thanks mora
Locked