in reply to Re: Perl regex speed
in thread Perl regex speed

Yes, %20. And generally, you are correct. I don't mind linking, but it wouldn't let me link in the original query for some reason.

Replies are listed 'Best First'.
Re^3: Perl regex speed
by cavac (Prior) on Oct 27, 2022 at 10:19 UTC

    Did you just copy&paste the link from somewhere? PM doesn't do any encoding for you, it just uses your text to generate HTML. Depending on the source of your link, you might have to do the encoding step manually (or run it through a browser url input once). And you have to add the link HTML tags yourself, PM doesn't do that for you.

    Text only: https://example.com/Hello World https://example.com/Hello%20World Wrong encoding: <a href="https://example.com/Hello World">Examle link</a> Correct encoding: <a href="https://example.com/Hello%20World">Example link</a>

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP