Check if file begins with number

Results 1 to 2 of 2

Thread: Check if file begins with number

  1. #1
    Join Date
    Dec 1969

    Default Check if file begins with number

    I have an upload script, where strFileName is the name of the file. My question is how would I check to see if this filename began with a number, and if it did, to delete that number, no matter how big it is, but it probably won&#039;t be any larger than like 5 numbers or so. <BR><BR>For example if the file is called: 341wm.asp<BR><BR>to rename the file to "wm.asp"<BR><BR>or 1asp.asp, to "asp.asp"<BR><BR>I hope that I made this clear, thank you for your help.

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Well you have to first upload the file

    then you can parse the file name and if it is a number, just delete it<BR><BR>What is it that you are having an issue with?<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts