php Q
- Started
- Last post
- 15 Responses
- pixelman
Hey i'm learnig php can someone explane me this script?
I know it replaces something into something else but how do they get the url into the reworked string?$berichting = eregi_replace ("]*href *= *([^ ]+)[^>]*>", "", $berichting);
- pixelman0
I don't understand this part.
"]*href *= *([^ ]+)[^>]*>", ""
- dr_Shim0
It's a regulare expression that attempts to find any [href] elements. Probably for a bullitin board.
RegExps (regulare expressions) are good ways of filtering through user input. Which is a neccessity if you don't want anybody trying to do an SQL injection on you, or something...
- dr_Shim0
You can search on google for regulare expressions. tons of stuff...
- pixelman0
thx dr_Shim.
- pixelman0
if i want it to pop up in a new window wher do i put the target="blank"?
If i put it here <a href="