CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of regex
C#
/// <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;
by Dean Weber   September 12, 2011 @ 7:19am
35 Views
no comments
 
C#
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>
by Rick Strahl   May 30, 2011 @ 6:56pm
Tags: RegEx, C#
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; 
    }
}
by jaredmroberts   January 28, 2011 @ 2:52pm
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() { _
by Mitchell William Cooper   November 26, 2009 @ 5:28am
413 Views
no comments
 
Imports System.Text.RegularExpressions
 
Module Module1
 
    Sub Main()
        Dim strUserNumbers As String()
        strUserNumbers = New String() { _
              "H0W_BOvThemy84kies" _
              , "01543 MWC66" _
              , "8" _
by Mitchell William Cooper   November 26, 2009 @ 5:27am
279 Views
no comments
 
C#
catch:b*\([^)]*\):b*\{:b*\}
by Stefan Sandström   November 13, 2009 @ 5:28am
Tags: Regexp
219 Views
no comments
 
C#
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;
by Dean Weber   October 08, 2009 @ 7:54am
329 Views
no comments
 
C#
using System;
using System.Configuration;
 
namespace Microsoft.Samples.AspNet.Validators
{
  class UsingRegexStringValidator
  {
    static void Main(string[] args)
    {
      // Display title.
by Dean Weber   October 07, 2009 @ 7:01am
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 = "";
by nobodybutca   October 07, 2009 @ 12:42am
800 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate