TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-26-2008, 02:48 PM   #1 (permalink)
The Wanderer
 
Join Date: Jan 2008
Posts: 24
Thanks: 13
sidisinsane is on a distinguished road
Help Cleaning results from dict://dict.org/

I have implemented a dictionary search using the DICT protocol (dict://). The search-results are unformatted and I'm trying to clean them up.

I.e., the results retrieved from dict://dict.hewgill.com/ can be trimmed with this simple code:
PHP Code:
$results explode("\"en.wiktionary.org (brief)\""$string);
$new_string $results[1]; 
This does away with the first part but leaves me with some stuff at the end, that I would want to cut off as well. Everything I have tried using "$new_string" in the further process has failed, always returning an empty string.

For a closer look at what the returned results look like, try a dictionary search on Boldeagle's Lifestream - Always in search of spinless (not 'spineless') information (search for "freedom" i.e.).

Some regex experts here perhaps who could help?

Last edited by sidisinsane : 08-26-2008 at 02:50 PM. Reason: Added link
sidisinsane is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 09:55 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design