Advanced String Methods

Methods for string manipulation were available in Javascript from the beginning but the methods originally available were somewhat primitive requiring substantial code to perform some basic manipulations. Javascript 1.2 introduced regular expression support and a selection of more advanced string manipulation methods.

These methods (particularly match, replace, split, and search) can make string manipulation much simpler provided that your visitors are using a browser recent enough to recognise them (which most browsers now do).

 

This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow
Donate