Question

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.

Was it helpful?

Solution

You can use the following regex:

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top