I'm trying to include two positive lookaheads in one regex. Here's the problem I'm working on as an example.
(?=[a-zA-Z])(?=[0-9])[a-zA-Z0-9]{0,20}
This is what I'm trying to match:
- 0-20 characters
- one or more letter anywhere
- one or more number anywhere
- only letters and numbers allowed
When I do this with only one lookahead, it works, but as soon as I add the other, it breaks. What's the correct syntax for two lookaheads?