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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 3
Title Test Details BBCode matching (opened/closed/with arguments/attributes)
Expression
(\[([^/].*?)(=(.+?))?\](.*?)\[/\2\]|\[([^/].*?)(=(.+?))?\])
Description
Matches BBCode, non-recursive. You must recursively run the pattern with each resulting subpattern to get all the tag.
Matches
[img]path[/img] (opened), [url=path]text[/url] (opened/args), [br] (closed), [img=path] (closed/args), [font size=50]text[/font] (opened, attribs)
Non-Matches
[/b]
Author Rating: Not yet rated. the DtTvB
Title Test Details VB Style Quoted String
Expression
"(""|[^"])*"
Description
This will match the VB-style quoted string. That means to use " in the quoted string you must use "" instead.
Matches
"" "Hello" """Wow"", he said" """"""
Non-Matches
"Unclosed
Author Rating: Not yet rated. the DtTvB
Title Test Details C-Style Quoted String version 2
Expression
"(\\.|[^"])*"
Description
This time is for C-Style Quoted String matching. So to use " in the quoted string you need to use \" and if you wanted to use \ in your string, use \\.
Matches
"" "!" "Hello" "Es\"Cape" "Backslash \\"
Non-Matches
"Backslash\", "Unclosed
Author Rating: The rating for this expression. the DtTvB
   Displaying page 1 of 1 pages; Items 1 to 3

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