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.

有帮助吗?

解决方案

You can use the following regex:

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

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top