Let's say I have a paragraph with some hashtags and I want to copy those out and display them separately. Here's some dummy Text:
Visualize how you can e-enable #vertical #architectures? Whenever you can, disintermediate vertical #convergence? #Visualize how you can e-enable #vertical architectures? Whenever you can, disintermediate vertical #convergence?
I'd like to present the hashtags: #convergence, #Visualize, #vertical on my template.
str = "Visualize how you can e-enable #vertical #architectures?..."
str.scan(/#\w+/).flatten #=> ["#vertical", "#architectures", "#convergence",...]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With