REFind() Sub-Expressions (Thanks Adam Cameron!)

<!--- Define target string. --->
<cfset strQuery = "ben=nice&maria+bello=sexy!&lori+petty=cool" />
 
<!---
	Search for our pattern in the string. Use the optional
	4th argument to have ColdFusion return the sub-expression
	matching.
--->
<cfset objMatch = REFind(
	"((([^=]+=[^&]*)&?)+)",
	strQuery,
	1,
	true
	) />
 
<!--- Dump out sub-expression matching. --->
<cfdump
	var="#objMatch#"
	label="REFind() Results"
	/>

For Cut-and-Paste