Re: [PHP] Reg Ex



On Fri, Oct 31, 2008 at 9:09 AM, Warren Windvogel
<wwindvogel@xxxxxxxxxxxx> wrote:
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


....or you could just use pathinfo and be done with it. I work for
clients. Clients shouldn't have to read a faq to upload a file.
.



Relevant Pages

  • Re: Building Contract. Please help.
    ... to build a house extension. ... However, throughout the build, the clients have increased this ... the garage extension. ...
    (uk.legal)
  • Re: [kde] OT: Long lines in email (was: Re: special bg color)
    ... characters per line is met. ... It may not meet the SHOULD of 78 chars, but it DOES meet the MUST of 998 ... the many implementations of user interfaces that display these ... the best clients will allow a /reader/ to toggle the ...
    (KDE)
  • Re: What Is Wrong With Newswatcher?
    ... set to 1000 chars, you'd have to cut up long lines either way, so to ... the display of more than 78 characters per line, ... by wrapping hyperlinks where they are not *required*, ... "It's MT-NW following Usenetspecifications that some other clients ...
    (comp.sys.mac.advocacy)
  • Re: .zip files being blocked
    ... > If you use Outlook Express or OWA can you see and save the attachment? ... > If you can then someone has added the ZIP extension to the unsafe ... listed in either level 1 or level 2 File types. ... list for normal outlook clients? ...
    (microsoft.public.exchange2000.general)
  • Re: Security policy cannot be propagated
    ... about a mismatch in where the security template came from. ... very large set of GPOs with the intent of administering XP clients. ... client-side Security extension. ... Applying computer settings... ...
    (microsoft.public.windows.server.active_directory)