From: Carlos Camargo Date: 2011-08-13T21:49:00+09:00 Subject: Re: regex position error Hi, De Luca and Davis, Thanks for your help. I found a solution that works fine: /( |-|')( |-|')|^( |-|')|( |-|')$|^$|\d|[^a-z çáäãàâéèëêíìïöóòôõüúùû\-\']/i The solution proposed by De Luca doesn't work for some characters (e.g. "?"). Best regards, Carlos Camargo -- Posted via http://www.ruby-forum.com/.