in reply to Re^3: simple regexp problem
in thread simple regexp problem

atom? (as opposed to atom??, atom*? and atom+?) means atom is optional. In other words, it provides the "optionally" in "you want AAAAAA optionally followed by _BBBBBB".