http://qs1969.pair.com?node_id=864201


in reply to Re: What is missing from the beginning of this string?
in thread What is missing from the beginning of this string?

Your regex solution s/^(.*?)(\w+\.)/$2/ should work perfectly for this.

The mad scientist in me, though, is still wondering if there's a way to do this sort of thing abstractly: to provide a prefix for a string where the prefix may be only partially present. I'll think about it later. It's Friday.


Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
Nos autem praedicamus Christum crucifixum (1 Cor. 1:23) - The Cross Reference (My Blog)