How to write a regular expression to match '012356789' (no 4)

regex

Solution

You can try this regex:

[0-35-9]

Problem

For now, I'm using `[012356789]`, but is there other way to implement "all numbers without 4" ?

Original source