personal blog related to technology, coding and publishing.
More SQL Madness!
OK, so here’s the new issue:
I’ve got a resultset with a screwy FilePath column (normally, the FilePath column has a full system-path (mac-style) stored in it). The screwy results need to have their path replaced with the correct data, without losing the actual filename that’s stored in the FilePath column.
Here’s what I’m looking at:
PMS_1106:Photos:001P1106PM.JPG
What I need to do is strip out everything but the filename (001P1106PM.JPG) and replace it with the new full system-path data.The filenames are unique, but not consistent in naming (length, letters, underscores, etc). I suppose I could work some regex magic (any a-z or A-Z 0-9 and _, – character(s), followed by a ‘.’ and [JPG|EPS|ext?]).
Hrm. might just have to experiment with this one.
| Print article | This entry was posted by Chad Edge on February 13, 2007 at 2:11 pm, and is filed under code, work. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
