www.tutorialspoint.com Forum Index
Register FAQMemberlistUsergroupsTutorials PointLog in
Reply to topic Page 1 of 1
ereg() warning: REG_EBRACK
Author Message
Reply with quote
Post ereg() warning: REG_EBRACK 
hello,

i've been getting this warning when i run my php script. what is this?

i'm trying to do a search engine, and i'm scanning through the html file. my warning is for this line

--> if (ereg("<meta\s*name=keywords\s*content=.*\s*[/\s*>|></meta>|>", $line))

but i'm getting warning: REG_EBRACK..it doesn't state anything else? can anyone tell me what is my problem?


_________________
christina_rules
View user's profile Send private message
Reply with quote
Post  
Please use blackslash before opening square bracket becuase this is reserved to specifiy multiple search options....

So try the following and it won't give warning..


if (ereg("<meta\s*name=keywords\s*content=.*\s*\[/\s*>|></meta>|>", $line))


Thanks


_________________
Moderator, TP
Keep visiting and share this site with your friends.
View user's profile Send private message Send e-mail
Reply with quote
Post Post Confirmation 
Thanks for your post. This post will be reviewed by webmaster and will be online very soon.!


_________________
sunglasses and jewelry for all ages of women furniture
View user's profile Send private message
Display posts from previous:
Reply to topic Page 1 of 1
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