As part of my installation, I have to unzip an archive and then find a path to the unzipped files. I am using <findfiles> in my installer and it finds what I need. It returns me a full path to the folder, based on my search pattern. The example of the returned path is "C:\Program Files\myapplication\java-install-folder\jre1.6_131-windows\bin". I then need to pass this path to another variable, but without the "\bin" part. How, using BitRock's Regular Expressions, to "chop off" the last part of that path, and to return only "C:\Program Files\myapplication\java-install-folder\jre1.6_131-windows"?

Thank you!

asked 13 May '12, 14:21

Sasha's gravatar image

accept rate: 0%

You could use the below code:

    <text>C:\Program Files\myapplication\java-install-folder\jre1.6_131-windows\bin</text>

answered 13 May '12, 15:36

juanjo's gravatar image

juanjo ♦♦
accept rate: 23%

Thank you for a prompt reply. I was just working on my project hoping to get the answer. I will give it a try right away.

(13 May '12, 15:41) Sasha
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 13 May '12, 14:21

Seen: 1,633 times

Last updated: 13 May '12, 15:41