REStructFindValue() - Adding Regular Expression Searching To StructFindValue()

<!--- Create a test data structure. --->
<cfset myData = {
	hotGirls = [
		{
			name = "Tricia",
			hair = "Brunette"
		},
		{
			name = "Kim",
			hair = "Blonde"
		}
		],
	athleticGirls = [
		{
			name = "Tricia",
			hair = "Brunette"
		},
		{
			name = "Jen",
			hair = "Black"
		}
		]
	} />
 
 
<!--- Get all the values that are either brunette OR black. --->
<cfset results = reStructFindValue(
	myData,
	"brunette|brown|black",
	"all"
	) />
 
<!--- Dump out the search results. --->
<cfdump
	var="#results#"
	label="reStructFindValue( 'brunette|brown|black' )"
	/>

For Cut-and-Paste