ApacheError - gekomad/scala-regex-collection GitHub Wiki
Type name |
example |
ApacheError |
[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header |
import com.github.gekomad.regexcollection.ApacheError
import com.github.gekomad.regexcollection.Validate.validate
assert(validate[ApacheError]("[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header") == None)
assert(
validate[ApacheError]("[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header") == Some(
"[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header"
)
)