-2

I am facing challenges in extracting a portion of string in SQL:

Example being : I have to extract from the below string:

  • VAGGRAWA from PAYPAL *VAGGRAWA 4029357733
  • VAGGRAWA from PAYPAL *VAGGRAWA8 4029357733
  • VAGGRAWA from PAYPAL VAGGRAWA8 4029357733

Can someone help me with a SQL formula to get this done?

Dharman
  • 30,962
  • 25
  • 85
  • 135

1 Answers1

1
(regexp_match(col, '^PAYPAL \*?([^ ]*) '))[1]
Laurenz Albe
  • 209,280
  • 17
  • 206
  • 263