New topic: 

Help with RegEx

<http://forums.realsoftware.com/viewtopic.php?t=46950>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        msssltd          Post subject: Help with RegExPosted: Fri Feb 
15, 2013 6:06 am                                 
Joined: Fri Oct 28, 2005 7:05 am
Posts: 517
Location: Emsworth, UK                I keep getting bogged down in regex 
tutorials, which never seem to provide the answers I am looking for.

Can someone please provide example search patterns, for what I think should be 
simple text extraction problems

"some text or other http://somehost.somedomain.local:1234/f ... mepage.txt some 
more text"

1. Return everything between the literal 'http://' and the first '/'  i.e. 
'somehost.somedomain.local:1234'

2. Return everything between two slashes.  i.e. 
'somehost.somedomain.local:1234'  or 'folder1' or 'folder2'

3. Return everything between the literal 'http:/' and the first colon ":".  
i.e. 'somehost.somedoain.local'

If someone can point me in the right direction, I can hopefully work the rest 
out myself.

Thanks in advance.      
_________________
Yes it's me in the avatar  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to