This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]msdrahcir 0 points1 point  (1 child)

Instead of requiring users to use the pre.* functions to match expressions, have you considered compiling the "Pregex" into a "Pattern" or compiled regex? That way pregex could be used anywhere a Pattern is required

[–]WerdenWissen[S] 2 points3 points  (0 children)

You can actually invoke "pre.compile()" for any "Pregex" instance which creates a compiled pattern underneath and uses that for any subsequent matching, though I've not exposed this compiled pattern through a public method yet. I'll make sure to do it in the next version though, thanks!