> i have this variables: > $url = '/products/computers/_es/'; > $pat = '/(_[a-zA-Z]{2})/'; > $rep = ''; try: $pat = '@(_[a-zA-Z]{2}/)@'; or $pat = '@(_[a-z]{2}/)@i'; my 2 cents... -- José Miguel Santibáñez jms@xxxxxxxxx PHP Data object relational mapping generator http://www.metastorage.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/