05-20-2010, 06:29 PM
i am a little bit rusty, when it comes to quickly writing code with regex and findrx.
please guide me into the right direction.
hock:
i have links with different hosts and need to wrap bbcode around found links from defined hosts.
like:
result should be:
thanks.
please guide me into the right direction.
hock: i have links with different hosts and need to wrap bbcode around found links from defined hosts.
like:
http://aaaaaaaa.com/files/389656480/BTh1.rar
http://aaaaaaaa.com/files/389656484/BTh2.rar
http://www.bbbbbbbbbbbbbb.com/1910306847/BTh1.rar
http://www.bbbbbbbbbbbbbb.com/1910306858/BTh2.rar
http://ccccccccccccc.com/files/jv9pb90bh
http://ccccccccccccc.com/files/jv934rsxbresult should be:
[box title=aaaaaaaa class=tborder]
http://aaaaaaaa.com/files/389656480/BTh1.rar
http://aaaaaaaa.com/files/389656484/BTh2.rar
[/box]
[box title=bbbbbbbbbbbbbb class=tborder]
http://www.bbbbbbbbbbbbbb.com/1910306847/BTh1.rar
http://www.bbbbbbbbbbbbbb.com/1910306858/BTh2.rar
[/box]
[box title=ccccccccccccc class=tborder]
http://ccccccccccccc.com/files/jv9pb90bh
http://ccccccccccccc.com/files/jv934rsxb
[/box]thanks.
