RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find javascript function
Expression
function[\s]+[\S]+[\s]*([\s]*)[\s]*{[\s]*([\S]|[\s])*[\s]*}
Description
detect javascript function in HTML
Matches
function displaymessage() { alert("Hello World!"); } | function Load_dvCont7() { loadBreaking('/Services/IncludePart/LevelOne/?T=7&Id=2007731105943979989&P=', '_dvCont7' , '1'); }
Non-Matches
any other HTML tag
Author Rating: Not yet rated. Omar Gamil
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials