RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
\\red([01]?\d\d?|2[0-4]\d|25[0-5])\\green([01]?\d\d?|2[0-4]\d|25[0-5])\\blue([01]?\d\d?|2[0-4]\d|25[0-5]);
Description
This RegEx will match a RTF color taken from a color tabel in a RTF document (having the form '\redXXX\greenXXX\blueXXX;', where XXX is a number between 0 and 255).
Matches
\red76\green157\blue76; | \red0\green0\blue0; | \red120\green120\blue120;
Non-Matches
\red0\green\257\blue120; | \red0\green0\blue0 | red120\green120\blue120;
Author Rating: Not yet rated. Rasmus Wehner
Source Partly taken from: http://www.oreilly.com/catalog/regex/chapter/ch04.html#Be_Specific
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials