perl-regex 0.13.3

Regex parsing and validation helpers for Perl syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod capture;
mod hover;
mod modifiers;
mod parser;

pub use capture::CaptureGroup;

pub struct RegexAnalyzer;

impl RegexAnalyzer {
    pub fn extract_named_captures(pattern: &str) -> Vec<CaptureGroup> {
        capture::extract_named_captures(pattern)
    }
    pub fn hover_text_for_regex(pattern: &str, modifiers: &str) -> String {
        hover::hover_text_for_regex(pattern, modifiers)
    }
}