java - How to select a file path using regex -
I would like to create a Java regular expression which selects everything from file: to the last The forward slash (/) in the file path is because I can replace it with a different path.
& lt ;! DOCTYPE "file: C: / documentum / XML2020 / application / JOZEW / good news / book." / & Gt; & Lt; MyBook & gt; Cool book & lt; / MyBook & gt; Do anyone have any ideas? Thanks!
You just want to go to the last slash before the end of the bid, right? If so:
file: [^ "] + /
(string" file: ", then some But also ends with ", a / /) - ran properly:
string regex =" file: [^ \ "] + /"; < / Pre>
Comments
Post a Comment