Search code examples
reddison

What kinds of patterns can RKeys#deleteByPattern(String pattern) take?


What type of pattern can be passed? Examples: regex, wildcard, etc. I have not been able to find a java doc or other documentation detailing this.


Solution

  • According to the javadoc in the source code:

    deleteByPattern supports these glob style patterns:

     h?llo subscribes to hello, hallo and hxllo
     h*llo subscribes to hllo and heeeello
     h[ae]llo subscribes to hello and hallo, but not hillo