in reply to Removing underscores.

something like:

$text =~ s/_+\././;
I would guess

/J\