jtified Posted August 26, 2009 Report Posted August 26, 2009 (edited) [/color] var str = "For more information, see Chapter 3.4.5.1"; var re = /(chapter \d+(\.\d)*)/i; <----------------- var found = str.match( re ); document.write(found ); Edited August 26, 2009 by jtified Quote
falkencreative Posted August 26, 2009 Report Posted August 26, 2009 That's a regular expression, used to look for a specific string of characters. You can get more info by doing a web search for "regular expression" or perhaps starting here: http://www.regular-expressions.info/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.