Re: [PHP] Reg Ex



Eric Butera wrote:
Who says every file will have an extension? Who says they're all .+3
chars? When I first started php I tried that and it failed in a lot
of places.

I've also run into that problem in the past. The way that I could work around all these issues was to document naming conventions for the files and validate these before using the regex to obtain the necessary information.

Regards
Warren
.



Relevant Pages

  • Re: dot-space in href regexp needed
    ... >inserting a space character after word-ending dot, this is why i use the ... Additionally it replaces chars only outside of HTML tags. ... be done with PHP. ... to "smuggle" some executable code into the pattern matching process. ...
    (comp.lang.php)
  • PHP ip2long() function circumvention
    ... the php ip2long() function can be tricked to return a valid IPv4 Internet ... in minibb case this could result in sql injection, ... (however Minibb limit the string to 15 chars so you will have an unuseful twelve ... also remeber that HTTP headers is not filtered by PHP magic_quotes_gpc, ...
    (Bugtraq)
  • Re: Reading data from a simple binary file
    ... >> How do you remove all bytes (chars) after the first NULL character? ... >I don't think PHP has a single function to do that. ... Thanks for helping to clear out the cobwebs of a C++ programmer who ...
    (comp.lang.php)
  • mail() - message lines <= 70 chars
    ... The manual page for PHP's mailfunction says that for the message (IE. email body) "Each line should be separated with a LF. ... To see what happened I just sent an email using mailwith one of its lines exactly 100 chars. ... PHP did not seem to mind at all. ... Why the limitation of <= 70 chars per line, and why does my version of PHP not seem to care? ...
    (comp.lang.php)
  • Re: [PHP] OS need anything for mail() to work?
    ... Is there any way for PHP to know that this email is not going through? ... On Apr 25, 2008, at 1:21 PM, Eric Butera wrote: ... up your sleeves and figure out how to make your local postfix relay to ... your isp's mail server instead of skeptoid as it is probably shutting ...
    (php.general)