我想匹配一个文件,这个文件可以是任何东西,例如test.txt。匹配一个表达式到字符串的末尾
我试图从提取文本example.txt中www.example.com/example.txt
这里是我想出了正则表达式:
\\../$
\\. for to match the dot
. for any characters in between 'com' and the forward slash
/$ to march forward slash to the end of the string.
这是正确的方法来取出文件?
这是我一直在使用源:我还使用Java进行我正则表达式http://www.regular-expressions.info/java.html
。