Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » C#
Showing page 1 of 7 (66 total posts)
  • Re: Regular Expression for LeadLag

    Hi All, I am using below expression @"^((\((&?\d+(\.\d*)?)([+-/*](&?\d+(\.\d*)?))*\)|((&?\d+(\.\d*)?)([+-/*](&?\d+(\.\d*)?))*))+)([+-/*]((\((&?\d+(\.\d*)?)([+-/*](&?\d+(\.\d*)?))*\)|((&?\d+(\.\d*)?)([+-/*](&?\d+(\.\d*)?))*))+))+$" and it is matching for string ...
    Posted to Construction Advice (Forum) by mahesh_marathe on August 2, 2011
  • Re: Regular Expression for LeadLag

    Hi Artur, Thanks for your quick reply I tested this expression against -->   LeadLag(100,101+102@103,104) it is allowing number after first ','  and before '@' i.e. 101 and 102 Our string only contains + or - and then @ after first ',' for e.g --> ',+@103'  OR ',-@103' Could ...
    Posted to Construction Advice (Forum) by mahesh_marathe on June 12, 2011
  • Regular Expression for LeadLag

    Hi All, I need regular expression to validate the text The text might be in any of the below format LeadLag(22,+@2,33) LeadLag(22,-@2,33) LeadLag(22,-@2) LeadLag(22,33) In place of 22,33 and 2 there might be any number I do not know much about how to generate regular expression for the string as above. Can anybody please help me ...
    Posted to Construction Advice (Forum) by mahesh_marathe on June 12, 2011
  • Regular Exp in C# and Java.

    Hi All I am working on porting a code from .net to Java. and its highly using reg expressions.I dont know .net and i have to recognize the purpose and meaning of regexs written to create same in java. There is one regex in C# to prevent HTml tags :(?<!<[^>]*) If anyone can help me find its equivalent in Java ,it would ...
    Posted to Platform Differences (Forum) by Misha79 on February 9, 2011
  • Equivalent of Regex Class (C#) in Java

    I am working on some code development in Java from C#. There is a method that returns Regex class-type in C# and figured that its a system class in System.Text.RegularExpressions.  Not much idea about C#. To simulate same thing in Java is there any Regex Class  that represents a regular epxression.
    Posted to Platform Differences (Forum) by Misha79 on February 8, 2011
  • Difficult Regex pattern [For Newbie]

    I was hoping someone with far more experience with regular expressions, particularly in .NET, could help me come up with a pattern. I have a program that will be reading in sql files and creating a deployment manifest based on the files. I need to match the file names to first, validate that they match a predetermined pattern. Then, extract ...
    Posted to Construction Advice (Forum) by DotNetShaman on November 8, 2010
  • My regex won't match correctly when input is on a single line

    Hello, I am trying to build a regex to extract 0 or more matched strings from HTML-formatted input. I am developing on the .NET Framework 3.5 in C#. I have been using http://regexhero.net/tester/ to build my regex (and use the generated code to verify results). I am using the case-insensitive option. The input will contain 0 or more entries ...
    Posted to Construction Advice (Forum) by gator on October 11, 2010
  • Split - sintax problem

    I have the following text: "Descrição Geral: Perto de muitas atrações locais., Quartos baratos, Perto da área empresarial, Perto da zona histórica. Localização: Convenientemente localizado em Upper West Side Manhattan area ., A área comercial fica a poucos minutos. ...
    Posted to Construction Advice (Forum) by Matheus on September 3, 2010
  • Remove \W while ignoring White Space

    Hi Folks. I am not to fermilliar with Reg X and i am tring to remove all none Alpa/Numeric Chars while leaving white spaces.  In c# Here is my code.         string searchString = Regex.Replace(search.Text.Trim().ToLower(), @"[\W]", ...
    Posted to Construction Advice (Forum) by Asbo Panda on July 29, 2010
  • Match all specified chars/strings between a start string/tag and an end string/tag.

    Hello. I did not manage to find appropriate script for my need in this fantastic forum, so I hope someone could help me with this case. (I believe this is quite trivial for one who really knows regex (I have just used some well known scripts in my code and not able quickly create this one).)  Here is information of what I have got so far ...
    Posted to Construction Advice (Forum) by Jam on March 9, 2010
1 2 3 4 5 Next > ... Last ยป