4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 String Matching
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
kepler
Junior WebHelper
Junior WebHelper


Joined: 08 Feb 2002
Posts: 37

PostPosted: Tue Nov 11, 2003 10:11 am (20 years, 5 months ago) Reply with QuoteBack to Top

Hi again,

I'm trying to extract some information from a html file. The structure of the pattern is:

/word1/word2/number1/number2_number3.html

word 1 to 2 are characters and number 1 to 3 are really numbers.

I've tryed in my ignorance the following:

$line = ~ /word1\/word2\/[0-9]*\/[0-9]*_[0-9]*.html/gi;

and

$line = ~ /word1\/word2\/[0-9]*\/[0-9]*_[0-9]*\.html/gi;

But instead of getting the pattern I get the whole html page... it's frustrating. Shocked

Does anyone knows why?

Best regards,

Kepler
OfflineView User's ProfileFind all posts by keplerSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.122555 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme