for example I have txt with content
qqqqaa qqss ss00
I want to replace only one q at the beginning of line, that is to get
qqq
You can use ^q(.+) and replace with $1 if you also want to replace single q's.
^q(.+)
$1