Skip to content
WK Integration Services Blog

regular expressions

  1. Home>
  2. regular expressions

Multiline TextBox Maximum Character Validation

  • Post author:Warren Kinley
  • Post published:March 27, 2008
  • Post category:asp.net/regular expressions
  • Post comments:0 Comments

Maximum character validation on asp.net TextBox controls do not work, therefore a RegularExpressionValidator has to be used to make sure the maximum number of characters are not exceeded e.g.<asp:TextBox ID="tbAbstract"…

Continue ReadingMultiline TextBox Maximum Character Validation

Strip HTML Tags from a String using Regular Expressions 

  • Post author:Warren Kinley
  • Post published:March 19, 2008
  • Post category:asp.net/c#/html/regular expressions
  • Post comments:0 Comments

Whilst writing some code to search forum posts I had the reason to remove all HTML tags from the forum posts before I could do a valid phrase search. I…

Continue ReadingStrip HTML Tags from a String using Regular Expressions 

Examples of Regular Expressions

  • Post author:Warren Kinley
  • Post published:March 13, 2008
  • Post category:asp.net/c#/javascript/regular expressions
  • Post comments:0 Comments

Trim string in JavaScriptvar trimre='^s+|s+$'; // replace whitespacevar trimmedstring = string.replace(trimre,"");Check for a valid date format in JavaScriptvar re='^(d{1,2})/(d{1,2})/(d{4})$'; // dd/mm/yyyyif (!datestring.match(re)){ alert("Date" + datestring + " not in valid…

Continue ReadingExamples of Regular Expressions

Creating a Banned Words Filter

  • Post author:Warren Kinley
  • Post published:March 11, 2008
  • Post category:asp.net/c#/regular expressions/xml
  • Post comments:0 Comments

I have a website with a user forum and content management system, where certain users (or anyone in the case of forums) can post to. I therefore had to create…

Continue ReadingCreating a Banned Words Filter

Recent Posts

  • Application Insights: Types of Availability Tests
  • APIM Trace from Postman & Send One-Way Request Policy
  • Bicep: Get the Trigger URL for a Consumption Logic App
  • Deploy Logic App (Std) Workflow Disabled with Bicep/YAML
  • Ping from an Azure Function App Disabled
  • September 2023
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • September 2022
  • August 2022
  • April 2022
  • February 2022
  • January 2022
  • December 2021
  • March 2018
  • February 2017
  • October 2013
  • September 2013
  • October 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • AJAX
  • APIM
  • Application Insights
  • asp.net
  • Azure
  • Azure Function
  • bicep
  • BizTalk
  • button
  • c#
  • CI/CD
  • connection
  • cross browser
  • css
  • D365
  • database
  • debug
  • deployment
  • deployment slot
  • devops
  • durable
  • firefox
  • html
  • ie
  • javascript
  • Key Vault
  • Logic App
  • Logic App (Std)
  • ordered lists
  • postback
  • Postman
  • regular expressions
  • Service Bus
  • sql
  • terraform
  • Uncategorized
  • unordered lists
  • visual studio
  • VS Code
  • winforms
  • xml
  • xslt
  • yaml
  • yui
  • zero downtime