Stories recently tagged with 'RegEx'

C# Regular Expressions Recipes(en.csharp-online.net)

submitted by HyleHyle(2755) 5 years, 5 months ago

Learn some common solutions to regular expression problems (System.Text.RegularExpressions) in the C# language. Excerpt: Included in the .NET Framework Class Library is the System.Text.RegularExpressions namespace that is devoted to creating, executing, and obtaining results from regular expressions executed against a string. Regular expressions take the form of a pattern that can be matched to zero or more characters within a string. The simplest of these patterns, such as .* (match anything and everything) and [A-Za-z] (match any letter) are easy to learn, but more advanced patterns can be difficult to learn and even more difficult to implement correctly. Learning and understanding regular expressions can take considerable time and effort, but the work will pay off. Regular expression patterns can take a simple form—such as a single word or character— or a much more complex pattern. The more complex patterns can recognize and match such things as the year portion of a date, all of the <SCRIPT> tags in an ASP page, or a phrase in a sentence that varies with each use. The .NET regular expression classes provide a very flexible and powerful way to do such things as recognize text, replace text within a string, and split up text into individual sections based on one or more complex delimiters. Despite the complexity of regular expression patterns, the regular expression classes in the FCL are easy to use in your applications. read more...

add a comment |category: |Views: 66

tags: another

Adding trim() function to JavaScript(ivanuzunov.net)

submitted by kichetokicheto(435) 5 years, 6 months ago

Adding trim() function to JavaScript read more...

add a comment |category: |Views: 3

tags: another

Grey Matter: Code Generation On A Budget(thinkersroom.com)

submitted by GandalfGandalf(465) 5 years, 6 months ago

What do you do when you have the specs for a 500 column table and are required to create the table, an update stored procedure and data bound code? You get smart. Real smart. read more...

4 comments |category: |Views: 3

tags: another

Validate a URL using regular expressions(madskristensen.dk)

submitted by madskristensenmadskristensen(8565) 5 years, 7 months ago

Today, I had to build web form that took user input from standard ASP.NET input controls. In one of the text boxes the user must to enter a valid URL, so I had to make some validation logic. But first of all, I had to find out what kind of URL’s we would accept as being valid. Based on those rules, I wrote these regular expressions read more...

1 comment |category: |Views: 12

tags: another

Chris's Free Developer Tools(sellsbrothers.com)

submitted by korayemkorayem(1240) 5 years, 7 months ago

This is a set of .NET, COM and Win32 tools that Chris Sells has built and contributed to the world. You may use them without royalty (and without support) in your compiled code. You may not redistribute the source code. A mention in the documentation of your products is always appreciated. Enjoy! read more...

add a comment |category: |Views: 10

tags: another

CoreWeb :: Regular Expression Library(developer.coreweb.com)

submitted by gavinjoycegavinjoyce(25.7k) 5 years, 7 months ago

This library contains many useful regular expressions. read more...

add a comment |category: |Views: 40

tags: another

VB.NET: RegEx Syntax Highlighting RichTextBox (pietschsoft.com)

submitted by crpietschmanncrpietschmann(11.3k) 5 years, 10 months ago

Here is a version of my code for syntax highlighting in a RichTextBox that incorporates regular expressions. read more...

add a comment |category: |Views: 1059

tags: another

Introducing Regulazy: Point & Click Regular Expressions(weblogs.asp.net)

submitted by gavinjoycegavinjoyce(25.7k) 5 years, 10 months ago

Roy Osherove has released a new Regular Expression (alpha) tool: "Regulazy is an attempt to build a small "Expert System" for creating .NET Regular Expressions. It lets the user create an expression based on a real life example of text they would like to parse. As the user interacts with Regulazy using the mouse, Regulazy offers the user possible expressions that would fit the currently selected text. As the user selects "rules" to apply on various parts of the text, a regular expression is built automatically in the lower application pane. The end result is a visual expression builder, that for most simple parsing operations, requires the user only to know what they would like to parse, and what the parsing rules should be - Regex Syntax is *not* needed." read more...

1 comment |category: |Views: 46

tags: another

Regex to Parse CSS Classnames(kinlan.co.uk)

submitted by KinlanKinlan(150) 5 years, 10 months ago

As promised, although a little late I have updated the Regex to get CSS classnames via C#. The problem I had was that it would find file extensions in a url specified by the "url(xyz.png)" in an attribute. read more...

add a comment |category: |Views: 309

tags: another

What is The Regulator?(regex.osherove.com)

submitted by j.montyj.monty(1868) 6 years, 2 months ago

The Regulator is an advanced, free regular expressions testing and learning tool written by Roy Osherove. It allows you to build and verify a regular expression against any text input, file or web, and displays matching, splitting or replacement results within an easy to understand, hierarchical tree. read more...

add a comment |category: |Views: 4

tags: another

I coulnd't do regex coding without this(sellsbrothers.com)

submitted by csmbacsmba(110) 6 years, 2 months ago

After discovering this tool, I just can not imagine doing any regex coding in .net without this. It is free, and saves you tons of debug time and compilations. All you need is to play with your regex on this tool, perfect it, and then write the code. just love it! read more...

2 comments |category: |Views: 18

tags: another