;

Tags: Regular Expression in Javascript Articles


How to Remove All Line Breaks From a String Using Javascript

Tutorialsrack 30/03/2022 Jquery Javascript

In this article, you’ll learn how to remove all line breaks from a string using Javascript. We used the replace() method to remove all the line breaks from a string and pass a regular expression that replaces all the occurrences of the ‘\n’ and ‘\r’ with an empty character.

Read More..

How to Restrict an HTML Input Textbox to Allow Only Numeric Values using Javascript or JQuery

Tutorialsrack 09/10/2021 Jquery Javascript

In this article, you will learn how to restrict an HTML input textBox to allow only numeric values using Javascript or JQuery. By default, the HTML5 input field has attribute type="number" that is used to get input in numeric format only.

Read More..

How to Check if a String Is a Valid SHA256 Hash or Not in Javascript

Tutorialsrack 13/06/2021 Jquery Javascript

In this article, you’ll learn how to check if a string is a valid SHA256 hash or Not in javascript. We used the regex expression to check if a string is a valid SHA256 hash in JavaScript. By using this regex expression, we match for the 64 consecutive hexadecimal digits which are characters from a-f and numbers from 0-9.

Read More..
Recent Posts
Tags