• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regex / finite state library with support for callouts

Johannes Goller
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know a Java library for regular expression matching or similar finite state techniques that enables callouts like PCRE in C does?

I.e a library that allows you to define a regular expression like


along with a user-defined function F, and then after matching "abc" calls F on the current match state, and continues the match for "def" after F has returned?

It does not have to be this exact syntax, but general support for function callouts is something I need and haven't been able to find in Java yet.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!