Need to remove last 2 sets of data from end of line???

Need to remove last 2 sets of data from end of line???

2
NewbieNewbie
2

    Jun 24, 2006#1

    I'm having trouble using regular expression to remove the last two sets of data from the end of a list of directories. The directories also have different lengths as do the file names if that matters.
    eg

    aaaa/bbbb/cccc/dddd/123.txt

    to leave just

    aaaa/bbbb/cccc/

    thanks

    206
    MasterMaster
    206

      Jun 24, 2006#2

      Using Unix-style regex.

      Search: ([/])[^/]*[/][^/]*$

      Replace: \1
      Software For Metalworking
      http://closetolerancesoftware.com

      2
      NewbieNewbie
      2

        Jun 26, 2006#3

        Thanks for the reply, I didnt have any luck using it so I used a simple macro instead, never mind. :D