Format:
Recent snippets matching tags of regex
/// <summary> /// Validates the email. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="System.Web.UI.WebControls.ServerValidateEventArgs"/> instance containing the event data.</param> /// <param name="page">The calling <see cref="System.Web.UI.Page" /> web page.</param> public void ValidateEmail(object sender, ServerValidateEventArgs e, Page page) { var emailAddress = page.FindControl("emailAddress") as TextBox; var firstName = page.FindControl("firstName") as TextBox;
35 Views
no comments
var subjectString = @" This works fine: <a href=""_1a904m3mg.htm"" >Help Builder Features</a> This will select the first (non-matching) href and selects through the second - need to avoid this <a href=""_2a904m3mg.htm"" >Help Builder Features</a> asdsad <a href=""_1a904m3mg.htm"" >Help Builder Features</a> Need to also match something like this: <a href=""path/_1a904m3mg.htms"" >Help Builder Features</a>
431 Views
1 comments
function checkEmail(inputvalue){ var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-Z])+/; if(pattern.test(inputvalue)){ return true; }else{ return false; } }
172 Views
no comments
Imports System.Text.RegularExpressions Module Module1 'http://learn.open.ac.uk/mod/oublog/viewpost.php?post=23031 'www.ForkandBeard.co.uk Sub Main() Dim strUserNumbers As String() strUserNumbers = New String() { _
413 Views
no comments
Imports System.Text.RegularExpressions Module Module1 Sub Main() Dim strUserNumbers As String() strUserNumbers = New String() { _ "H0W_BOvThemy84kies" _ , "01543 MWC66" _ , "8" _
279 Views
no comments
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Text.RegularExpressions; using System.Text; using System.IO; using System.Reflection;
329 Views
no comments
using System; using System.Configuration; namespace Microsoft.Samples.AspNet.Validators { class UsingRegexStringValidator { static void Main(string[] args) { // Display title.
1600 Views
no comments
function IsPassedPasswordPolicies() { var _newPassword = document.getElementById('txtPassword'); var _confirmedPassword = document.getElementById('txtConfirmPass'); var _oldPassword = document.getElementById('tbPasswordOld'); var _buttonSave = document.getElementById('btnSave'); var _errorLabel = document.getElementById('lblPasswordError'); var _disabled = false; _errorLabel.innerHTML = "";
800 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
