30秒学会 JavaScript 片段 – 6 JavaScript Regular Expression features you can use today
Regular expressions, while very powerful, are notoriously hard to master. Here are 6 useful features...
Regular expressions, while very powerful, are notoriously hard to master. Here are 6 useful features...
Converts a tilde path to an absolute path. Use String.prototype.replace() with a regular expression ...
Converts an integer to its roman numeral representation. Accepts value between 1 and 3999 (both incl...
Reverses a list or a string. Use slice notation to reverse the list or string.
Removes HTML/XML tags from string. Use a regular expression to remove HTML/XML tags from a string.
Checks if the given string is an absolute URL. Use RegExp.prototype.test() to test if the string is ...
Removes accents from strings. Use String.prototype.normalize() to convert the string to a normalized...
Takes any number of iterable objects or objects with a length property and returns the longest one. ...
Capitalizes the first letter of every word in a string. Use str.title() to capitalize the first lett...
Cookies are small pieces of data that are stored in the browser. They are used to store information ...