I am creating a Chat App
I want that if a user types/paste any link/Ural (eg:https://creator.kodular.io/ ) in the chat message. The
Chat Message (that contains the Ural/Links) automatically change colour to blue
And also When the Ural/Link is clicked it open in Chrome Custom Tab/Web Viewer just like
WhatsApp or Telegram.
Is that possible and if then how?
Two Questions
How to change text colour to blue if it contains Links/Ural
How to make links Clickable (ie: When a link is clicked it open in Web Viewer or Chrome Custom Tab)
Any other suggestion to make a better Chat App is Highly Appreciated
Thanks for answering
Kevinkun
(kevinkun)
August 26, 2021, 11:14pm
#2
Use regular expression extension to detect if a sentence contains URLs. Seach Regex in taifun extension directory
1 Like
I didn’t get it. If you can explain with some blocks, how it gonna help me.
That would be great.
Thanks
Kevinkun
(kevinkun)
August 27, 2021, 8:38am
#4
2 Likes
Kevinkun
(kevinkun)
September 3, 2021, 5:55am
#6
Pls post the pattern again, in the block the pattern is not complete
dora_paz
(Dora)
September 3, 2021, 6:05am
#7
[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
2 Likes
If there are multiple links then This method will work or not?
@dora_paz