Regular Expressions 101

Sponsors

Library entries

1
javascript

Testing Header String Regex

no description available
Submitted by anonymous - 7 years ago
1
javascript

Typo 3 Section

no description available
Submitted by Dan Schalow - 7 years ago
2
javascript

SSN

allow nine digits only
Submitted by anonymous - 7 years ago
1
javascript

yahya_asadi

trying to learn regex
Submitted by yahya_asadi - 7 years ago
0
javascript

text validation

allows white spaces, -, Umlaut and ß
Submitted by anonymous - 7 years ago
1
javascript

get user authentication

no description available
Submitted by anonymous - 7 years ago
1
javascript

Validate US Telephone Numbers

no description available
Submitted by Davide Vozzi - 7 years ago
2
javascript

Remove XSS

no description available
Submitted by Harish Thakur - 7 years ago
1
javascript

Change Extension in File Name

Changes extension in a file name.
Submitted by Mi-L@ - 7 years ago
1
javascript

RNP

no description available
Submitted by KSrGEAR - 7 years ago
0
javascript

href parse v2

matches href, title, innerhtml
Submitted by chrysls - 7 years ago
2
javascript

Href parse

matches href, title, innerhtml
Submitted by chrysls - 7 years ago
1
javascript

password validation

no description available
Submitted by anonymous - 7 years ago
1
javascript

FEN

no description available
Submitted by anonymous - 7 years ago
1
javascript

FEN

FEN is "Forsyth-Edwards Notation"
Submitted by maxqua72 - 7 years ago
2
javascript

Removes script tags

no description available
Submitted by ghs - 7 years ago

Button Online State Regex

Vote

1

Regular Expression
javascript

/
^(([a-zA-Z0-9\|\!\._\-\s\:]*<a href=\"#\" onclick=\"ON_CLICK_EVENT\">[a-zA-Z0-9\|\!\._\-]*<\/a>)|(<a href=\"#\" on(c|C)lick=\"(HSBC_pre_chat_est\(\)\;\s)*ON_CLICK_EVENT\"(\s)*>(\s)*<img src=(\'|\")[a-zA-Z0-9\|\!\._\-\:\,\/\s]*(\'|\")(\s)*(\/)*>(\s)*<\/a>)|(<a href=\"#\" onclick='try \{ LPButtonClicked\(\)\; \} catch \(e\) \{\}\; ON_CLICK_EVENT'\; title=\"Start Live Chat\"><img src=\"[a-zA-Z0-9\|\!\._\-\:\,\/\s]*\" border=0 alt=\"Live Chat\" onload=\"LPButtonDisplayed\(\)\"><\/a>)|([a-zA-Z0-9\|\!\._\-\s]*<a href=\"#\" onclick=(\'|\")ON_CLICK_EVENT(\'|\")><span><span class=\"lpStartChat\">[a-zA-Z0-9\|\!\._\-\s]*<\/span><\/span><\/a>)|(<a href='javascript\:\;' on(c|C)lick='javascript\:ON_CLICK_EVENT\;'>(\s)*<img src='[a-zA-Z0-9\|\!\._\-\:\,\/\s]*'(\s)*(border='0'\salt='Chat with an HSBC Representative' title='Chat with an HSBC Representative')*(\/)*>(\s)*<\/a>)|(<a href='#' onClick='javascript\:ON_CLICK_EVENT\; '>[a-zA-Z0-9\|\!\._\-\s]*<\/a>)|(<h4>Live Chat<\/h4>(\s)*<div class=\"supportContentGeneralBoxInnerChat\">(\s)*<h5>Welcome to Live Chat<\/h5>(\s)*<p>How can we help you\?<\/p>(\s)*<p><a class=\"redBtn liveChatBtn\" href=\"#\"(\s)*onclick=\"ON_CLICK_EVENT\" title=\"Start Chat\"><span>Start Chat<\/span><\/a><\/p>(\s)*<\/div>)|(<div style='padding\:0px' box-shadow\: -3px 3px 10px(\s)*#888888\;><a href=\"#\" onClick='ON_CLICK_EVENT\;'target=\"_self\">(\s)*<img src='[a-zA-Z0-9\|\!\._\-\:\,\/\s]*'(\s)*id='SwitchButton' Border='0'\/><\/a><\/div>)|(<div id=\"lpButtonTab\" style=\"float:left; width:30px\" onclick=\"lpStickyButton\.toggleState\(\);\"><img src=\"[a-zA-Z0-9\|\!\._\-\:\,\/\s]*\" width=\"30\" height=\"125\" border=\"0\" \/><\/div>(\s)*<div id=\"lpButtonArea\" style=\"margin-left:30px; width:251px\"><img src='[a-zA-Z0-9\|\!\._\-\:\,\/\s]*' style='cursor:pointer' onclick='ON_CLICK_EVENT' \/><\/div>)|(<div class=\"liveChatSideBox\">(\s)*<h2>Live chat<\/h2>(\s)*<p>Welcome to Live Chat\. How can we help you\?<\/p>(\s)*<p><a class=\"redBtn liveChatBtn\" href=\"#\"(\s)*onclick=\"ON_CLICK_EVENT\"(\s)*title=\"Start Chat\"><span>Start Chat<\/span><\/a><\/p>(\s)*<\/div>))$
/
gm

Description

Loading markdown...
Submitted by anonymous - 7 years ago