regexp query


    Jun 20 2009 | 10:34 am
    is it possible to strip a hard drive name from a pathname using regexp? so Macintosh HD:/Users/robin becomes /Users/robin??
    I guess it would be everything up to and including the colon tht would be removed, if that were possible
    thanks

    • Jun 20 2009 | 11:24 am
      Hi,
      Is there a particular reason to use regexp?
      Cause it is much easier to use [conformpath] for what you want :
      Charles
    • Jun 20 2009 | 12:11 pm
      wonderful! i didn't know that. i'm trying to format messages as unix commands, so i thought the solution would probably be something horrible. but that's great, thankyou
    • Jun 20 2009 | 12:36 pm
      Here's a [regexp] solution just in case you're interested. The object can do a lot for you, in this case [conformpath] is easier but perhaps give regular expressions a look as they can be very useful.
      lh