How to select file path using regular expression
I would like to create a java regex that selects everything from a file: up to the last forward slash (/) in the file path. This means that I can replace it in another way.
<!DOCTYPE "file:C:/Documentum/XML%20Applications/joesdev/goodnews/book.dtd"/>
<myBook>cool book</myBook>
Does anyone have any ideas? Thank!!
0
source to share
4 answers