i copy javascript code from internet for test extract url from any source code. this is some code for extract url ( it can extract line id url too) if (address_type == "web") { rawemail = input.match(/([A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_%&\?\~/.=]+)/gi); } else { when source code was extracted it will show result in this: example line.me/ti/p/~bond007 line.me/ti/p/~aaa.bbb207/12 BUT word /12 not line id i confirm i don't want it. what is correct Regular Expressions for extract line id url to this format ? https://line.me/ti/p/~aaa.bbb207
i can not edit topic i am very surprise what is correct javascript code for extract line id url ? i copy javascript code from internet for test extract url from any source code. this is some code for extract url ( it can extract line id url too) if (address_type == "web") { rawemail = input.match(/([A-Za-z]+://[A-Za-z0-9-]+.[A-Za-z0-9-%&?~/.=]+)/gi);} else { when source code was extracted it will show result in this: example see at https://imgur.com/vFf7R4t BUT word /12 not line id i confirm i don't want it. what is correct Regular Expressions for extract line id url to this format > https://line.me/ti/p/~aaa.bbb207