jtified Posted August 26, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
falkencreative Posted August 26, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
jtified Posted August 27, 2009 Author Report Share Posted August 27, 2009 Thanks again! ^^ Quote Link to comment Share on other sites More sharing options...
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.