regexp query
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
Hi,
Is there a particular reason to use regexp?
Cause it is much easier to use [conformpath] for what you want :
Max Patch
Copy patch and select New From Clipboard in Max.
Charles
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
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
Max Patch
Copy patch and select New From Clipboard in Max.