Regular expressions (i think)

    Date: 12/19/05 (PHP Community)    Keywords: no keywords

    Ok, I'm trying to create what I think is called a parser.

    I have some text stored in var (say called $foo) and somewhere in this text is

    Now, I'm trying to work out to copy the "function_name" part into another var so I can then search the db for the code and then use the str_replace function to substitute the original tag for the correct code or text.

    Now I have been told this is a task for regular expressions, but I have been looking into this and I’m just finding myself getting overwhelmed.

    Can anyone help?

    Source: http://www.livejournal.com/community/php/381336.html

« making code secure || $_SERVER['PHP_SELF&apo... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home