Skip to content

Instantly share code, notes, and snippets.

@ryanguill
Last active March 10, 2016 16:38
Show Gist options
  • Save ryanguill/116297330b1b1dd5a960 to your computer and use it in GitHub Desktop.
Save ryanguill/116297330b1b1dd5a960 to your computer and use it in GitHub Desktop.
[\s#]+session[.\[]+[^\s]
better from choop: \bsession[.\[][^\s]+
tests:
dontmatchsession.x
session.foo
#session.foo
session["foo"]
session[foo]
session.#something#
session. dont match
<cfset dontmatchsession.x
<cfset session.foo
<cfset #session.foo
<cfset session["foo"]
<cfset session[foo]
<cfset session.#something#
<cfset session. dont match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment