8.16.0.4

5.5 Regular Expressions🔗ℹ

The rhombus/rx library supports regular expression (i.e., regexp) matching on strings, byte strings, and input ports.

The rx form creates a RX object, which has RX.match and RX.match_in methods to match a complete string or to find the first matching position within a string. A successful match is represented as a RXMatch object, which reports a matching (byte) string and as well as matches for capture groups within the regexp pattern.

    5.5.1 Regular Expression Language

    5.5.2 Full versus Partial Regexp Matching

    5.5.3 String, Byte String, and Port Matching

    5.5.4 Regexp Quick Reference