Need to remove everything except alphabetic/letters in javascript?
Here is a simple example of using javascript to replace/remove characters
Step 1: Create a sample string
Step 2: Use a regular expression to remove characters that don’t match the characters you want
For more hints and examples in using Regular Expressions
Visit JavaScript RegExp Example- Online Regular Expression Tester
Pretty powerful and awesome one you learn how.
No comments:
Post a Comment