Basic.sql 932 B

1234567891011121314151617181920212223242526272829303132
  1. /* syntax version 1 */
  2. $match = Pire::Match("a.*");
  3. $grep = Pire::Grep("axa");
  4. $insensitive_grep = Pire::Grep("(?i)axa");
  5. $multi_match = Pire::MultiMatch(@@a.*
  6. .*a.*
  7. .*a
  8. .*axa.*@@);
  9. $multi_match2 = Pire::MultiMatch(@@YQL.*
  10. QC.*
  11. .*transfer task.*@@);
  12. $capture = Pire::Capture(".*x(a).*");
  13. $capture_many = Pire::Capture(".*x(a+).*");
  14. $replace = Pire::Replace(".*x(a).*");
  15. SELECT
  16. value,
  17. $match(value) AS match,
  18. $grep(value) AS grep,
  19. $insensitive_grep(value) AS insensitive_grep,
  20. $multi_match(value) AS multi_match,
  21. $multi_match(value).0 AS some_multi_match,
  22. $multi_match2(value) AS multi_match2,
  23. $multi_match2(value).0 AS some_multi_match2a,
  24. $multi_match2(value).1 AS some_multi_match2b,
  25. $multi_match2(value).2 AS some_multi_match2c,
  26. $capture(value) AS capture,
  27. $capture_many(value) AS capture_many,
  28. $replace(value, "b") AS replace,
  29. $multi_match2(Nothing(String?))
  30. FROM Input;