10x Henrique! it works great bur i need tha same with gsub, i want to replace the matched string... :/ another idea? -- View this message in context: http://r.789695.n4.nabble.com/regex-tp3306635p3307114.html Sent from the R help mailing list archive at Nabble.com.