Verify if String matches a format String

前端 未结 7 2244
误落风尘
误落风尘 2021-02-13 08:55

In Java, how can you determine if a String matches a format string (ie: song%03d.mp3)?

In other words, how would you implement the following function?

7条回答
  •  感情败类
    2021-02-13 09:36

    You can use Java regular expressions - please see http://www.vogella.de/articles/JavaRegularExpressions/article.html

    Thanks...

提交回复
热议问题