1

I am trying to implement a simple text search that supports glob patterns. Is there any built-in way to do it?

Stephen C
  • 698,415
  • 94
  • 811
  • 1,216
Hengrui Jiang
  • 861
  • 1
  • 10
  • 23
  • duplicate? http://stackoverflow.com/questions/1247772/is-there-an-equivalent-of-java-util-regex-for-glob-type-patterns – vitalii Oct 10 '16 at 14:14
  • yeah I was there.. I do not want to use FileSystem.getPathMatcher(String) as I don't have a path. As that thread does not contain any other built-in ways, I thought there may be a better solution now in 2016 than copy that java code and convert it to scala – Hengrui Jiang Oct 10 '16 at 14:18
  • Java versions here, pretty simple to convert to Scala; http://stackoverflow.com/a/17369948/21755 – The Archetypal Paul Oct 10 '16 at 17:22

0 Answers0