bullseye 0.1.1 copy "bullseye: ^0.1.1" to clipboard
bullseye: ^0.1.1 copied to clipboard

Dart 1 only

A new flavour of regex in Dart.

bullseye #

Bullseye is a new flavour of regex for Dart, because JavaScript's regex flavour sucks quite a lot.

Some things Bullseye has that JS regex doesn't:

  • Lookbehinds (positive and negative)
  • Variable-length lookaheads

Possible features:

  • Named capturing groups
  • Backtracking
  • Recursion (probably not)

Usage #

A simple usage example:

import 'package:bullseye/bullseye.dart';

void main() {
  NewRegex dart = new NewRegex("ab*");

  print(dart.allMatches("ababbaa")); // => ["ab", "abb", "a", "a"]
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

A new flavour of regex in Dart.

Repository

License

BSD-3-Clause (LICENSE)

More

Packages that depend on bullseye