RegExp Help

Results 1 to 2 of 2

Thread: RegExp Help

  1. #1
    Join Date
    Dec 1969

    Default RegExp Help

    I&#039;m having trouble coming up with a regular expression that will separate a filename from a full path and match only the filename. <BR><BR>In other words, I have:<BR><BR>FileName = "/directory/xyz/abc123.html"<BR><BR>And I need only abc123.html to be matched. <BR><BR>Anyone who has done this or has an idea, your help is appreciated. Thanks in advance.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: RegExp Help

    I would just do a string search for each "/". Each time you find one, delete from the left to that position.

Posting Permissions

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