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 6 (57 total posts)
  • 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
  • Exclude string in expression

    I'm a newbee and hope someone will take pity on me.  In Visual Studio 2008, I need to find all line that have the whole word FROM and does NOT contain the string (WITH (NOLOCK)).  I'd settle for it not containing the work WITH.  All words are case insensitive. Select * FROM tblRequests Select * from tblRequests WITH ...
    Posted to Construction Advice (Forum) by rboehm00 on February 25, 2010
  • Help validate directory path

    I need help creating a regular expression for a user input on an asp.net page with c# code behind. I have a textbox where a user can enter a directory path; which i then use to save certain files at. they can enter a local directory, a directory on network, server or an ftp site. so for example these are valid ...
    Posted to Construction Advice (Forum) by imranmp on February 25, 2010
  • match all text between <tamplate></template>

    Hi, I am pretty clueless about regex but I need  to match any text between <template></template> tags using C# regex. Only thing I can guarantee is that there will not be any more occurrence of these tags. 
    Posted to Construction Advice (Forum) by epitka on January 28, 2010
  • find only filenames that start with e.g. 12345_

    Hi all, I have some problem with Regular Expressions and .NET (C#) I like to find specific filenames and then remove the prefix. Therefore I have two regular expressions. One for finding only the correct files and the other one for the replacment. I like to find only files, that start with exactly 5 digits [1-9] followed by a "_". ...
    Posted to Construction Advice (Forum) by Tommy on January 10, 2010
  • need to use combination of numbers,spl characters and alphabets in a textbox

    Hi all i had posted my query in msdn,some1 suggested that my problem cld b solved better here in this forum. I ve a text box,n there are certain rules which i need to follow while entering data into the textbox Rules 1.Only alphabets accepted EX:Howards 2. Alphabets along with numbers accepted EX:Howards22 3.Alphabets along with spl ...
    Posted to Construction Advice (Forum) by megha_lohit on August 16, 2009
  • Extract directory name from file path - C#

    Hi, I have following example: C:\C4\trunk\Catalog\bvh\dance\dance2.bvh and I need to extract last folder name (dance). The variable parts are - last folder name and file name, so text can be C:\C4\trunk\Catalog\bvh\sit\sit_female.bvh  (result should be "sit") C:\C4\trunk\Catalog\bvh\sit\sit_male.bvh   (result should be ...
    Posted to Construction Advice (Forum) by Stipa on June 24, 2009
  • Numbering by a 5 year old

    Hi Im am writing a function in SQL Server 2005 using a simple C# assembly that implements C# regex functions. I found the assembly on codeproject. The data I am trying to modify contains numbering, that was entered by a 5 year old probably.  Here is 5 of the problem data on the LEFT and data I need to return on the RIGHT The word ...
    Posted to Construction Advice (Forum) by HeavenBurns on June 10, 2009
  • Help whit Regex URL

    Hello i nead help whit this Regex how do i change it to only get .com right now its get all crap :) Code:   Regex regexExtractURLs = new Regex( "(?<base><base\\s?[^>]*\\shref\\s*=\\s*(?:(?:[\\\"\\\'](?<url>[^\\\"\\\']*)[\\\"\\\'])|(?<url>[^\\s>]*))[^>]*[>])|" ...
    Posted to Construction Advice (Forum) by SpikeBox on May 9, 2009
  • Search in a string until the occurrence of a particular string.

     Hi all, I amtrying to create an email parser in C#. I want to extract mail body from the entire raw email string. To separate message footer from message body, I inserted a GUID string in between them. So a sample email may like ...
    Posted to Construction Advice (Forum) by thomas_joyeee on April 22, 2009
1 2 3 4 5 Next > ... Last ยป