Japanese phone number checker for Rust.
[dependencies]
japhonex = "0.1"
In your Go app you can do something like:
extern crate japhonex;
use japhonex::japhonex;
use japhonex::HyphenCheck;
fn main () {
let r = japhonex(HyphenCheck::Optional);
r.is_match("<your input>");
}
let r = japhonex(HyphenCheck::Optional);
// 0xx-xxxx-xxxx or 0xxxxxxxxxx
let r = japhonex(HyphenCheck::Required);
// 0xx-xxxx-xxxx
let r = japhonex(HyphenCheck::NoCheck);
// 0xxxxxxxxxx
MIT