devdaily home | apple | java | perl | unix | directory | blog

</tr> </table> <table class="code-table" align="center"> <tr> <td class="code"> <pre>$1 </tr> </table> ]]> </replace> </match> <match name="openSimpleQuote"> <regex>\[quote\] <replace> <![CDATA[ <table class="quote-table" align="center"> <tr> <td class="quote"> ]]> </replace> </match> <match name="openQuote"> <regex>\[quote=['"]?(.*?[^'"])['"]?\] <replace> <![CDATA[ <table class="quote-table-simple" align="center"> <tr> <td>$1 wrote: </tr> </table> <table class="quote-table" align="center"> <tr> <td class="quote"> ]]> </replace> </match> <match name="closeQuote"> <regex>\[/quote\] <replace> <![CDATA[   </td> </tr> </table> ]]> </replace> </match> <!-- B --> <match name="b"> <regex>\[b\](.*?)\[/b\] <replace> <![CDATA[ <b>$1 ]]> </replace> </match> <!-- I --> <match name="i"> <regex>\[i\](.*?)\[/i\] <replace> <![CDATA[ <i>$1 ]]> </replace> </match> <!-- U --> <match name="u"> <regex>\[u\](.*?)\[/u\] <replace> <![CDATA[ <u>$1 ]]> </replace> </match> <!-- LIST --> <match name="list"> <regex>\[list\](.*?)\[/list\] <replace> <![CDATA[ <li> $1 ]]> </replace> </match> <!-- IMG --> <match name="img" removeQuotes="true"> <regex>\[img\](.*?)\[/img\] <replace> <![CDATA[ <img src="$1" border="0"> ]]> </replace> </match> <!-- Automatic URL matching --> <match name="auto-url" removeQuotes="true" alwaysProcess="true"> <regex>(^|[\n ]|\()([\w]+?://[^ \"\n\r\t<\)]*) <replace> <![CDATA[ $1<a href="$2" target="_blank" rel="nofollow">$2 ]]> </replace> </match> <match name="auto-url-simple" removeQuotes="true" alwaysProcess="true"> <regex>(^|[\n ]\()(www\.[^ \"\t\n\r<\)]*) <replace> <![CDATA[ $1<a href="http://$2" target="_blank" rel="nofollow">$2 ]]> </replace> </match> <match name="auto-ftp-simple" removeQuotes="true" alwaysProcess="true"> <regex>(^|[\n ]\()(ftp\.[^ \"\t\n\r<\)]*) <replace> <![CDATA[ $1<a href="ftp://$2" target="_blank" rel="nofollow">$2 ]]> </replace> </match> <match name="auto-email" removeQuotes="true" alwaysProcess="true"> <regex>(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+) <replace> <![CDATA[ $1<a href="mailto:$2@$3">$2@$3 ]]> </replace> </match> <!-- URL --> <match name="simple-url" removeQuotes="true"> <regex>\[url\](.*?)\[/url\] <replace> <![CDATA[ <a href='$1' target='_new' rel="nofollow">$1 ]]> </replace> </match> <!-- URL=?? --> <match name="descriptive-url" removeQuotes="true"> <regex>\[url=['"]?(.*?[^'"])['"]?\](.*?)\[/url\] <replace> <![CDATA[ <a href="$1" target="_new" rel="nofollow">$2 ]]> </replace> </match> <!-- COLOR --> <match name="color" removeQuotes="true"> <regex>(?s)\[color=['"]?(.*?[^'"])['"]?\](.*?)\[/color\] <replace> <![CDATA[ <font color='$1'>$2 ]]> </replace> </match> <!-- SIZE --> <match name="size" removeQuotes="true"> <regex>(?s)\[size=['"]?(.*?[^'"])['"]?\](.*?)\[/size\] <replace> <![CDATA[ <span style="font-size: $1px; line-height: normal">$2 ]]> </replace> </match> </bbConfig>

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="utf-8"?>
<bbConfig>
	<!-- CODE -->
	<match name="code">
		<regex>(?s)\[code\](.*?)\[/code\]
		<replace>
		<![CDATA[
		<table class="code-table-simple" align="center">
		<tr> 
		<td>Code:




Copyright 1998-2008 Alvin Alexander
All Rights Reserved.
 
devdaily.com is based in louisville, kentucky, and this web site is hosted by godaddy.com