sajad torkamani

Match a q that is immediately followed by a u, without making the u part of the match.

q(?=u)

Match a q that is followed by a u (doesn’t have to be immediately after), without making the u part of the match.

q.*(?=u)

Sources / related

Tagged: Regex

Leave a comment

Your email address will not be published. Required fields are marked *