Frage

I am implementing a scheduler based on Quartz and have a use case where I have the start and end of a group..

Can I use GroupMatcher.jobGroupContains(someregexp) ?

I tried using it straight away, but it did not work. Is there a way something like this could work?

One possible solution is to use startsWith and endsWith to get result sets and then do an intersection, but that doesn't look like a very good approach.

War es hilfreich?

Lösung

You can use the following regex:

'^(asdf).*(ghjk)$'

This regex matches any string that begins with asdf and ends with ghjk.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top