Skip to content

YenCurrency

Giuseppe Cannella edited this page Feb 19, 2020 · 2 revisions
Type name example
YenCurrency ¥1.00
import com.github.gekomad.regexcollection.YenCurrency
import com.github.gekomad.regexcollection.Validate.validate

assert(validate[YenCurrency]("¥150000000.00") == Some("¥150000000.00"))
assert(validate[YenCurrency]("¥1.00") == Some("¥1.00"))
assert(validate[YenCurrency]("15.00") == Some("15.00"))
assert(validate[YenCurrency]("-150.00") == Some("-150.00"))
assert(validate[YenCurrency]("1500.00") == Some("1500.00"))
assert(validate[YenCurrency]("1,500.00") == Some("1,500.00"))
assert(validate[YenCurrency]("¥0.20") == Some("¥0.20"))
assert(validate[YenCurrency]("¥-1213,120.00") == Some("¥-1213,120.00"))
assert(validate[YenCurrency]("25:00") == None)
Clone this wiki locally