I have this line:
return "[a-z]$scheme*:/{2}(??:[a-z0-9\-._~!$&'($inline*+,;=|]+|%[\dA-F]{2})+|[0-9.]+|\[[a-z0-9.]+:[a-z0-9.]+:[a-z0-9.:]+\])(?::\d*)?(?:/(?:[a-z0-9\-._~!$&'($inline*+,;=|]+|%[\dA-F]{2})*)*(?:\?(?:[a-z0-9\-._~!$&'($inline*+,;=/?|]+|%[\dA-F]{2})*)?(?:\#(?:[a-z0-9\-._~!$&'($inline*+,;=/?|]+|%[\dA-F]{2})*)?";
It's got regexp in it for defining a url.
What I need to do is add something in there for:
--- and is not followed by "["
http://www.hbgames.org <---- this should be fine (followed by no characters)
http://www.hbgames.org <---- this should be fine too (followed by a space)
http://www.hbgames.org[ <---- this should not
http://www.hbgames.org[/img] <---- this should not either
I really don't have a clue what I'm doing here and am hoping this is possible.
Anyone have any ideas?
Hopefully you can see the problem above. The code is generating the automatic hyperlink from the url. I want it to not do that for anything followed by [, as I have something special planned for that.
return "[a-z]$scheme*:/{2}(??:[a-z0-9\-._~!$&'($inline*+,;=|]+|%[\dA-F]{2})+|[0-9.]+|\[[a-z0-9.]+:[a-z0-9.]+:[a-z0-9.:]+\])(?::\d*)?(?:/(?:[a-z0-9\-._~!$&'($inline*+,;=|]+|%[\dA-F]{2})*)*(?:\?(?:[a-z0-9\-._~!$&'($inline*+,;=/?|]+|%[\dA-F]{2})*)?(?:\#(?:[a-z0-9\-._~!$&'($inline*+,;=/?|]+|%[\dA-F]{2})*)?";
It's got regexp in it for defining a url.
What I need to do is add something in there for:
--- and is not followed by "["
http://www.hbgames.org <---- this should be fine (followed by no characters)
http://www.hbgames.org <---- this should be fine too (followed by a space)
http://www.hbgames.org[ <---- this should not
http://www.hbgames.org[/img] <---- this should not either
I really don't have a clue what I'm doing here and am hoping this is possible.
Anyone have any ideas?
Hopefully you can see the problem above. The code is generating the automatic hyperlink from the url. I want it to not do that for anything followed by [, as I have something special planned for that.