in reply to RE: Regex to find URLs in a string
in thread Regex to find URLs in a string
i don't think that $#newline means what you think it means. that variable indicates the index of the last element of @newline (if it is non-empty) and has nothing to do with the scalar variable $newline.
try the following instead:
if (substr($newline, -1) eq '.')
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Regex to find URLs in a string
by FouRPlaY (Monk) on Oct 25, 2000 at 22:01 UTC |