Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

regex

Simple regex replace to keep original string

August 25, 2022 by Magenaut

I have this:

Categories ASP.NET, Q&A Tags asp.net, c#, regex, replace, string Leave a comment

.Net RegularExpressionValidator matches differently than Regex class

August 25, 2022 by Magenaut

When I use the .Net RegularExpressionsValidator control the Validation expression matches EXACT text. When I say this I mean, for the string I give it to validate, if it deviates from the regex pattern at all the string does not validate.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, regex Leave a comment

Remove white space from entire Html but inside pre with regular expressions

August 24, 2022 by Magenaut

On ASP.NET MVC 3, I created a Action Filter for white space removal from the entire html. It works as I expected most of the time but now I need to change the RegEx in order not to touch inside pre element.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, c#, javascript, regex Leave a comment

Forum tags. What is the best way to implement them?

August 24, 2022 by Magenaut

I am building a forum and I want to use forum-style tags to let the users format their posts in a limited fashion. Currently I am using Regex to do this. As per this question: How to use C# regular expressions to emulate forum tags

Categories ASP.NET, Q&A Tags asp.net, c#, forum, regex, tags Leave a comment

Regular expression to match 10-14 digits

August 24, 2022 by Magenaut

I am using regular expressions for matching only digits, minimum 10 digits, maximum 14. I tried:

Categories ASP.NET, Q&A Tags asp.net, regex Leave a comment

Regular Expression for any number divisible by 60 using C# .Net?

August 24, 2022 by Magenaut

I need to apply validation on input time intervals that are taken in as seconds. Now i am not really good at Regular expressions. So can any body help making a regular expression that can test whether a number is divisible by 60.

Categories ASP.NET, Q&A Tags .net, asp.net, c#, regex Leave a comment

Regular expression to match dollar amounts

August 24, 2022 by Magenaut

Could anybody provide me the regular expression for the following patterns?

Categories ASP.NET, Q&A Tags asp.net, c#, javascript, regex Leave a comment

What is the expression on RegularExpressionValidator to check if the Textbox text is 6 or more characters long?

August 24, 2022 by Magenaut

what is the format for the RegularExpressionValidator control to check if the textbox to be validated has 6 or more characters?

Categories ASP.NET, Q&A Tags asp.net, regex, validation Leave a comment

Regex vs Tryparse what is the best in performance

August 24, 2022 by Magenaut

In my ASP.net project I need to validate some basic data types for user inputs. The data types are like numeric, decimal, datetime etc.

Categories ASP.NET, Q&A Tags asp.net, c#, performance, regex, tryparse Leave a comment

Unable to parse Oracle timestamp in C#

August 24, 2022 by Magenaut

I have timestamp of Oracle:

Categories ASP.NET, Q&A Tags asp.net, c#, odp.net, oracle, regex Leave a comment
Older posts
Newer posts
← Previous Page1 … Page4 Page5 Page6 … Page20 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress