Find & Open file

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Guest

Find & Open file

Post by Guest »

I'm trying to work out how to create a tool that allows me to look for a file with the name based on the selected word. By using find (cygwin) with the parameters:

C:/src -name $SelWord.java

I can capture following the result in the output:

C:src/com/blah/event/MyFile.java

At the moment I'm trying to work out how to write the regular expression to match the output so I can open that file.

Firstly, is there are better alternative to search and open a file. Secondly, help with the regular expression would be good...otherwise I'll need to read the docs.
Guest

Post by Guest »

Well, I know the regular expression is:

^\([^(]+\)


But I still want to know if there's a better way to do this.
Post Reply