background preloader

Regular Expressions Reference - Basic Syntax

Regular Expressions Reference - Basic Syntax
The regular expressions reference on this website functions both as a reference to all available regex syntax and as a comparison of the features supported by the regular expression flavors discussed in the tutorial. The reference tables pack an incredible amount of information. To get the most out of them, follow this legend to learn how to read them. The tables have six columns for each regular expression feature. The final two columns indicate whether your two chosen regular expression flavors support this particular feature. When this legend says "all versions" or "no version", that means all or none of the versions of each flavor that are covered by the reference tables: For the .NET flavor, some features are indicated with "ECMA" or "non-ECMA". For the std::regex and boost::regex flavor there are additional indicators ECMA, basic, extended, grep, egrep, and awk. For the PCRE2 flavor, some replacement string features are indicated with "extended".

Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns Remove Skype Chat History for Single Contact Introduction I wanted to clear the Skype chat history for a single user, but Skype only allows you to clear the complete chat history, not a single user's contact history. I searched for 3rd party tools on the net but nothing worked for me on Windows 7 / Skype 4.1 At the beginning, I knew nothing about how Skype stored chat history and just entered my username and password to login and chat with friends. After spending a few hours asking Google many questions, I found that Skype was using the following SQLite database to store its messages. System Drive:\<Current User’s application data folder>/Skype/<Skype username>/main.db I tried to read it with SQLitespy, but it was a pain to find and clear messages each time. Using the Code First of all, I had to find a method to deal with an SQLite database file using C#. Reference System.Data.SQLite.dll (Located in C:\Program Files\SQLite.NET\bin\System.Data.SQLite.dll) to allow C# to deal with the SQLite database file.

Regular Expression HOWTO — Python v2.7.2 documentation Introduction The re module was added in Python 1.5, and provides Perl-style regular expression patterns. Earlier versions of Python came with the regex module, which provided Emacs-style patterns. Regular expressions (called REs, or regexes, or regex patterns) are essentially a tiny, highly specialized programming language embedded inside Python and made available through the re module. Regular expression patterns are compiled into a series of bytecodes which are then executed by a matching engine written in C. The regular expression language is relatively small and restricted, so not all possible string processing tasks can be done using regular expressions. Simple Patterns We’ll start by learning about the simplest possible regular expressions. For a detailed explanation of the computer science underlying regular expressions (deterministic and non-deterministic finite automata), you can refer to almost any textbook on writing compilers. Matching Characters \d \s \w Repeating Things Grouping

BryanCockerham.com :: Projects SkypeX Beta* | Delete your Skype messages Role: Concept, design, development Have you ever: Typed something you wished you hadn't? Regular price $19.99, beta price $4.99 I'm hoping future releases will include: - Backup of Skype™ conversations - A Skype™ conversation export tool Questions? Only $4.99 Purchase and download in 2 minutes! Works on: Windows 7 | Windows Vista | Windows XP Simple to use: Enter your Skype™ Username Choose a Skype™ conversation Select messages you wish to delete by clicking the gray area on the left. Requires Microsoft .NET Framework version 3.5 or greater. * Although tested, this product is in beta. SkypeX Beta* is not in any way affiliated with or endorsed by Skype™ New features in version 2: Click anywhere in the message row to select the message You can use the CTRL key combined with arrow keys and spacebar to select and unselect messages quickly The message list resizes when you resIze the window.

Advanced Regular Expression Tips and Techniques Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+. Regular Expressions are the Swiss Army knife for searching through information for certain patterns. They have a wide arsenal of tools, some of which often go undiscovered or underutilized. Today I will show you some advanced tips for working with regular expressions. Adding Comments Sometimes, regular expressions can become complex and unreadable. For example, here is something we might use to check for US phone numbers. It can become much more readable with comments and some extra spacing. Let's put it within a code segment. The trick is to use the 'x' modifier at the end of the regular expression. Using Callbacks In PHP preg_replace_callback() can be used to add callback functionality to regular expression replacements. Sometimes you need to do multiple replacements. Let's look at this example, where we have an e-mail template. Notice that each replacement has something in common. Other

Related: