Streets in Greece have the format Street 123 and I need a Java Regex to match it. The regex I came up with looks correct to me, it's not working though and I am not really an expert on regex. Someone suggested that Java's regex maybe different than Javascripts,and I am not an expert on them either,so can anyone help? I just need a word,followed by 1 whitespace,followed by a 3digit number(max). So for example it should match
- Street 123
- Street 1
- Street 12
but not match Street123,Street1234,Street 1234
Here's my regex:
ADDRESS_REGEX = "[A-Za-z]+\\s[0-9]{3}+";