Registry / utility / joni
library2.2.7javamavenunverified

Joni is a Java port of the Oniguruma regular expression library that operates directly on byte arrays.

<dependency> <groupId>org.jruby.joni</groupId> <artifactId>joni</artifactId> <version>2.2.7</version> </dependency>
INSTALL
IMPORT
SIG · JONI
J
joni
utilityjavav2.2.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Regex
org.jruby.joni.Regex

Compile and match a regex pattern against a byte array.

import org.jruby.joni.Regex; import org.jruby.joni.Matcher; import org.jruby.joni.exception.SyntaxException; public class Example { public static void main(String[] args) throws SyntaxException { Regex regex = new Regex("hello"); Matcher matcher = regex.matcher("hello world".getBytes()); if (matcher.search(0, "hello world".length(), 0) != -1) { System.out.println("Match found"); } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.7latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
joni — mvn dependency:get joni · libregistry