Skip to content

Instantly share code, notes, and snippets.

@orangexception
orangexception / gist:1288132
Created October 14, 2011 19:52
Regular Expression to match partial email or phone number.
# Problem
Find partial valid email address or partial phone number.
# Answer
^(([\w_]+@))||((\d[\d-]*))$
It's not a perfect solution, but it'll work for the given test cases.
# Given Test Cases
## EMAIL
@orangexception
orangexception / gist:1284209
Created October 13, 2011 13:25
storeStructIntoSession
<cffunction name= "storeStructIntoSession"
output= "false"
hint= "I store a form into the session scope">
<cfargument name= "stTarget"
required= "true"
hint= "I am the target struct for storage." />
<cfargument name= "sSessionKey"
required= "false"