Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '[^']+' # NOt a single quote between 2 single quote (i.e. strings we don't want to convert)
- (*SKIP) # skip this string
- (*FAIL) # fail to match
- | # OR
- w+ # 1 or more word character
- L$0 # lowercase the whole match (i.e. the string NOT between quotes)
- case
- when table.attribute = 'CaseSensitiveStringValue'
- then 'OutcomeValue'
- else 'OTHERValue'
- end as casename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement