Skip to content

Twitter

Giuseppe Cannella edited this page Feb 19, 2020 · 3 revisions
Type name example
Twitter https://twitter.com/rtpharry/
import com.github.gekomad.regexcollection.Twitter                                                             
import com.github.gekomad.regexcollection.Validate.validate                                                   
                                                                                                              
assert(validate[Twitter]("http://twitter.com/rtpharry/") == None)                                             
assert(validate[Twitter]("https://twitter.com/rtpharry/") == Some("https://twitter.com/rtpharry/"))           
assert(validate[Twitter]("https://twitter.com/rtpharry") == Some("https://twitter.com/rtpharry"))             
assert(validate[Twitter]("https://twitter.com/#!/rtpharry/") == Some("https://twitter.com/#!/rtpharry/"))                                                              
Clone this wiki locally