Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Regular Expression

$
0
0

oracle query - select LTRIM (REGEXP_SUBSTR ('\' || file_path, '\\[^\]*', 1, 7), '\') from table1 

please provide eqvivalent query to extract substring

eg:

12*CUSTOMER*0*1*\\UCCS-WEB\REPOSITORY_I\CUSTOMER\GAGAL_DEBIT_CCLT\202013\05\03\14315268_10042013_e3b38cb4-fb0a-4e90-93a4-aa4af2ad6f04.pdf'

need to extract the string at 7th index of \,, 8th index of \ and so on. the length of the entire string varies.

Thanks in advance 


Viewing all articles
Browse latest Browse all 23857

Trending Articles