Register • FAQ • Memberlist • Usergroups • Tutorials Point • Log in

| Page 1 of 1

ereg() warning: REG_EBRACK
Author | Message
--- | ---
christina_rules Joined: 08 Aug 2007 Posts: 3 | 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
Wed Aug 15, 2007 2:11 pm |
tutorialspoint Site Admin Joined: 27 Apr 2007 Posts: 134 | 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.
Fri Aug 24, 2007 5:32 pm |
cricketer Joined: 07 Apr 2010 Posts: 1 | 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
Wed Apr 07, 2010 7:40 am |

Display posts from previous: |

| 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

Powered by phpBB © phpBB Group Design by Vjacheslav Trushkin for phpBBStyles.com