Manoj M. wrote in post #1113802:
> Hi
> anybody help me to find suitable validation way for Hash_Tag, My need is
> user should only type hash_tag like below format.
> a) #sports
> b) #sports,#news
There's not enough information here to really know how to help you, but
the solution will almost certainly involve regular expressions...
http://www.regular-expressions.info
So would the following format be invalid in your app?
"Some random text #sports and some more random text #news #football."
You have not specified enough detail for what you consider valid
hashtags to formulate a workable regular expression.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b95f2b6c36d2c26a97e979be33bf1e73%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment