Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
[URL=[a-zA-Z0-9.:/_\-]+\][a-zA-Z0-9._/ ]+\[/URL\]
|
Description |
A simple match for BBCode type strings. I had to code my own BBCode scheme for a project that I had taken up and really this is my first RegEx so I thought that I would share. You could modify this to work with any BBCode type of string that has the [TAG=VALUE]Desc[/TAG] syntax.
|
Matches |
[URL=http://www.luvs.org]Luvs.org[/URL]
|
Non-Matches |
http://www.luvs.org
|
Author |
Rating:
Not yet rated.
Robby Lacy
|
Title |
Test
Details
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
|
Displaying page
of
pages;
Items to