SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '[^']+'         # NOt a single quote between 2 single quote (i.e. strings we don't want to convert)
  2. (*SKIP)         # skip this string
  3. (*FAIL)         # fail to match
  4. |               # OR
  5. w+             # 1 or more word character
  6.      
  7. L$0        # lowercase the whole match (i.e. the string NOT between quotes)
  8.      
  9. case
  10. when table.attribute = 'CaseSensitiveStringValue'
  11.   then 'OutcomeValue'
  12.   else 'OTHERValue'
  13. end as casename
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top