Le 25 fñ×rier 21:28, Adam Akhtar a ñÄrit :

> and i want to insert an asterix at every 10th char whether its a
> whitespace, digit whatever how do i go about it
> 
> i was trying
> 
> string.gsub!(/[.]{10}/, "*")

What about string.gsub!(/(.{9})./, '\1*') ?

Fred
-- 
I know how to hurt         I know how to kill        I know what to show
And what to conceal       I know when to talk   And I know when to touch
               No one ever died from wanting too much
                                      (Garbage, The World Is Not Enough)