In this article we show how to infer a regular language from a set of classified input samples using the well-known RPNI algorithm together with popular genetic algorithms inspired by nature.