Joe Lanman

Web design and development when not playing computer games

Posts tagged with ‘strings’

Python-style startswith and endswith string functions in Javascript

July 10, 2008

The Python language has useful string methods to search for prefixes and suffixes:


my_string.startswith('pre')

The same thing can be achieved in Javascript using the rather powerful search and replace methods.

(more…)

1 Comment

WP SlimStat

Asynchronous Google Analytics for WordPress plugin powered by WordPress Expert at minilibra.com.