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 2
Title Test Details Retreive text between parenthesis
Expression
[\(]{1,}((?:(?<t>[^\(]*))[)]{1,})
Description
This regex will retreive any text between parenthesis characters (including the parenthesis themselfs)
Matches
Test (test 1) | (test)
Non-Matches
Test
Author Rating: The rating for this expression. Joakim Höglund
Title Test Details Retreive text between parenthesis #2
Expression
[\(]{1,}[^)]*[)]{1,}
Description
Will find any texts within a string that is enclosed within parenthesis ( )
Matches
Test (test 1) | (test) | Test (test 1) Test (test 2)
Non-Matches
Test
Author Rating: The rating for this expression. Joakim Höglund
   Displaying page 1 of 1 pages; Items 1 to 2

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