"WCJ d/b/a http://ccsh.us/"; schreef:
> Rob Dixon:
>> John W. Krahn:

>>> s/_.*\././;
>>
>> Sometimes Perl regexes start to look like ASCII art!
>
> Thats why this format would be easier on the eyes:
>
> s|_.*\.|.|;

Variants:

  s| _ .* [.] |.|x

  s! _ .* [.] !.!x

  s{ _ .* [.] }{.}x

-- 
Affijn, Ruud

"Gewoon is een tijger."



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to