8000 GitHub - ryanmiville/regexp: 📇 Regular expressions in Gleam!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ryanmiville/regexp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regexp

Regular expressions in Gleam!

Package Version Hex Docs

gleam add gleam_regexp@1
import gleam/regexp

pub fn main() {
  let assert Ok(re) = regexp.from_string("[0-9]")

  regexp.check(re, "abc123")
  // -> True

  regexp.check(re, "abcxyz")
  // -> False
}

This package uses the regular expression engine of the underlying platform. Regular expressions in Erlang and JavaScript largely share the same syntax, but there are some differences and have different performance characteristics. Be sure to thoroughly test your code on all platforms that you support when using this library.

Further documentation can be found at https://hexdocs.pm/gleam_regexp.

About

📇 Regular expressions in Gleam!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Gleam 79.2%
  • JavaScript 10.4%
  • Erlang 10.4%
0