1
Hello, I have a list of addresses and I’m trying to verify which ones have numbers and which don’t. However, I have some strings that end with number and I’m trying to create a regex to filter these results. I don’t want you to return numbers that come after the words "street" and "km".
> #exemplo:
> enderecos <- c("rua 5", "rua x, casa y", "km 18")
>
> #resultado esperado:
> FALSE TRUE FALSE
I appreciate anyone who can help me.
Hello Carlos, this expression is returning me the error Error: ' s' is an unrecognized escape in Character string Starting ""(?:km|street)+ s"
– Jessica Voigt
I figured out how to fix it, I need one before S and D :)
– Jessica Voigt