ファイルを照合しようとしています。このファイルは、test.txtなどの任意のファイルである可能性があります。
www.example.com/example.txtから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.
これはファイルを取り出す正しい方法ですか?
これが私が使用しているソースです:http://www.regular-expressions.info/java.html
正規表現にもJavaを使用しています。