Tapatalk

How to find 4 numbers?

How to find 4 numbers?

2
NewbieNewbie
2

    Jun 02, 2005#1

    I need to find a dutch zip code in a file.
    example: "1234AB" or "1234 AB" (four number+two letters)

    I found this expression:
    [0-9]{4}[\s]*[A-Za-z]{2}
    but this does not work.

    It has someting to do with the {} can somebody offer a suggestion how to work around this?

    Thnx

    261
    Basic UserBasic User
    261

      Jun 02, 2005#2

      mvgils:

      I don't think UE supports the {} REs. I would try something like this:

      \d\d\d\d\s*[a-zA-Z][a-zA-Z]

      Note that I am using unix style REs (there is a setting on Advanced | Configuration | Find) and that any number of spaces would be found between the numbers and the letters. UE also doesn't support the "?" RE, find 0 or 1 occurrance of a string.

      Dave
      ASTTMan
      I'm not a Texan, I just live here.