RESULTS:
Execution Time(sec.):
0.000022
Raw Match Pattern:
((([^\(0-9]+)))([ ])+([\(\)]{1})([0-9]+[a-z]?)([\(\)]{1})(\.)([ ])+([^\.\?]+)(\.)([ ])+([^0-9]+)([ ])+([A-Z]?[0-9]+[A-Z]?)(\:)([A-Z]*[0-9\,]+[A-Z]*)([\-–—]+)([A-Z]*[0-9\,]+[A-Z]*)(\.)
Match Pattern Explanation:
VB.NET Code Example:
Imports System.Text.RegularExpressions
Module Module1
Sub Main()
Dim sourcestring as String = "replace with your source string"
Dim re As Regex = New Regex("((([^\(0-9]+)))([ ])+([\(\)]{1})([0-9]+[a-z]?)([\(\)]{1})(\.)([ ])+([^\.\?]+)(\.)([ ])+([^0-9]+)([ ])+([A-Z]?[0-9]+[A-Z]?)(\:)([A-Z]*[0-9\,]+[A-Z]*)([\-–—]+)([A-Z]*[0-9\,]+[A-Z]*)(\.)")
Dim m As Match = re.Match(sourcestring)
For groupIdx As Integer = 0 To m.Groups.Count - 1
Console.WriteLine("[{0}] = {1}", re.GetGroupNames(groupIdx), m.Groups(groupIdx).Value)
Next
End Sub
End Module
$matches Array:
(
[0] => Berry, Brent. (2006). What accounts for race and ethnic differences in Berry, Brent. parental financial transfers to adult children in the United States? Journal of Family Issues 37:1583-1604.
[1] => Berry, Brent.
[2] => Berry, Brent.
[3] => Berry, Brent.
[4] =>
[5] => (
[6] => 2006
[7] => )
[8] => .
[9] =>
[10] => What accounts for race and ethnic differences in Berry, Brent
[11] => .
[12] =>
[13] => parental financial transfers to adult children in the United States? Journal of Family Issues
[14] =>
[15] => 37
[16] => :
[17] => 1583
[18] => -
[19] => 1604
[20] => .
)