New topic: 

RegEx, RegExp, Regular Expression, 3 Q's

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

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       Eclipse           Post subject: RegEx, RegExp, Regular 
Expression, 3 Q'sPosted: Tue Oct 27, 2009 7:41 am                        
Joined: Sat May 19, 2007 6:01 am
Posts: 88              Code:strText = "<META NAME="keywords" CONTENT="search1, 
search2, search3, search4">
<META NAME="description" CONTENT="life is a flower...!!">
<a href="www.secretpage.se?mysko=klureri&swrnum=1540">Here is a stange 
text...</a>"



Three questions:
I've searched for days and RegEx is REALLY difficult for me. I have tried, but 
receive nothing but errors. I need some assistance... Where to look.

I've also noticed there is a built in RegEx in REALbasic. I don't know if it is 
good or not to use this.

1. I want to find the "swrnum=" -string and extract the digits to the right.
2. I want to extract the keywords and this is how they are normally written.
3. I would like to extract the description.

They can be in different code... not all together!

I hope you understand!

***
Of-course, this is an average web page... but the page usually contains A LOT 
more information than this. I have focused here only on  the interesting parts. 
i have left out much code.   
                            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