Snippets tagged “regular-expression”
3 snippets use this tag.
- How to Allow Only Positive Numbers in the Input Number TypeHTML
In this snippet, we’ll demonstrate how to allow only positive numbers in the input number type. You can use the “min” attribute to specify restrictions.
- How to Change the Href for a Hyperlink using jQueryJavaScript
Read this JavaScript tutorial and learn the easy way of changing the href attribute for a hyperlink step by step by using one of the methods of jQuery.
- Split Java String by New LineJava
To split a string in Java by new line, you can use the split method of the String class and pass it the regular expression "\n" or "\r\n", depending on the platform you are running on.