You need to escape your back slashes:

  re = regex "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}\\b"

Zachary Kessin <[email protected]> writes:

> I am trying to compile this code
> https://gist.github.com/zkessin/e19640130ba33099a9c209b98b012815
>
> when I am getting this error
>
> (line 1, column 31): unexpected "." expecting space, "&" or escape code
>
> 7|         re = regex "\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b"
>                                                                  ^
> Maybe <http://elm-lang.org/docs/syntax> can help you figure it out.
>
>
> -- 
> Zach Kessin
> Twitter: @zkessin <https://twitter.com/zkessin>
> Skype: zachkessin
> ᐧ
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to