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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(\{\\f\d*)\\([^;]+;)
Description
This pattern returns the font section from an RTF document. The first parenthetical subexpression captures the font number, the second returns the actual font enumeration. Lame-o, but fun! :-)
Matches
{\f0\Some Font names here; | {\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial; | {\f
Non-Matches
{f0fs20 some text}
Author Rating: Not yet rated. Joel Dooris
Source
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

Title: Nice, but I need more
Name: John Davis
Date: 1/24/2005 5:51:51 PM
Comment:
I want to strip all the rtf off of data coming back from SQL Server field. Got any ideas how to do this. Just want the verbage, not the formatting. It seems like it is all saved as text.


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