tester (1,506)


regex - Learning Regular Expressions

regex - Learning Regular Expressions

I don't really understand regular expressions. Can you explain them to me in an easy-to-follow manner? If there are any online tools or books, could you also link to them?…


How do you retrieve selected text using Regex in C#?

How do you retrieve selected text using Regex in C#? I am looking for C# code that is equivalent to this Perl code: $indexVal=0; if($string=~/Index:(\d*)/){$indexVal=$1;}…


My regex is matching too much. How do I make it stop?

J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1-Completed successfully I have this giga…


html - Regex to Parse Hyperlinks and Descriptions

C#: What is a good Regex to parse hyperlinks and their description? Please consider case insensitivity, white-space and use of single quotes(instead of double quotes) around the HREF tag. Please als…



.net - XPath and Selecting a single node

I'm using XPath in.NET to parse an XML document, along the lines of: XmlNodeList lotsOStuff=doc.SelectNodes("//stuff"); foreach(XmlNode stuff in lotsOStuff){XmlNode stuffChild=stuff.Selec…


Is regex case insensitivity slower?

Source RegexOptions.IgnoreCase is more expensive than I would have thought(eg, should be barely measurable) Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C#(which is what I…


regex - How can test I regular expressions using multiple RE engines?

How can I test the same regex against different regular expression engines?…


networking - Tools for degrading my network connection?

I've written some applications than heavily use network, and I would like to test it over a slow network. I'm looking for a tool to simulate these kind of connections. I'm only interested in Windows…


How to set up a robot.txt which only allows the default page of a site

Say I have a site on http://example.com. I would really like allowing bots to see the home page, but any other page need to blocked as it is pointless to spider. In other words http://example.com & h…


Regex in VB6?

I need to write a program that can sift through specially-formatted text files(essentially CSV files with a fixed set of column types that have different delimiters for some columns... comma in mos…




regex regular expression match string replace example examples javascript java