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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
[B\][a-zA-Z0-9._/ ]+\[/B\]
Description
The second type of BBCode that I had to write. This one is an example of Bolding what is between the blocks though it can easily modified to match other Tags such as Underline or li. Really anything that would match the BBCode that does not need a value in the first tag (ie. [TAG]Desc[/TAG]).
Matches
[B]Bold[/B]
Non-Matches
[Bold]Not Bold[/Not Bold]
Author Rating: Not yet rated. Robby Lacy
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: Missing starting slash
Name: rtpHarry
Date: 10/26/2011 7:07:37 AM
Comment:
This is missing a starting backslash. It should be \[B\][a-zA-Z0-9._/ ]+\[/B\] and without the starting slash it tries to match the first [] character set as [B\][a-zA-Z0-9._/ ]


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