Skip to content

NotASCII

Giuseppe Cannella edited this page Jan 10, 2019 · 3 revisions
Type name example
NotAscii テスト。
import com.github.gekomad.regexcollection.NotAscii
import com.github.gekomad.regexcollection.Validate.validate

assert(validate[NotAscii]("2sdf.0") == None)
assert(validate[NotAscii](" 前に来た時は北側からで、当時の光景はいまでも思い出せる。") == Some(" 前に来た時は北側からで、当時の光景はいまでも思い出せる。"))
assert(validate[NotAscii]("の中央には純白のホワイトパレス") == Some("の中央には純白のホワイトパレス"))
assert(validate[NotAscii](" ……あ。") == Some(" ……あ。"))
assert(validate[NotAscii]("テスト。") == Some("テスト。"))
import com.github.gekomad.regexcollection.NotAscii
import com.github.gekomad.regexcollection.Validate.findAll

assert(findAll[NotAscii]("""    テ ス  ト      a ああ   bw""") == List("テ ス  ト      ", "ああ   "))
Clone this wiki locally