How to use regex to replace all user_ids in column link
? The user_id is always started with '11'
The query should look like this:
select link, xxxx as short_link from table
database: snowflake
| link | short link |
|------------------------------------------------------------|----------------------------------|
| /boba/users/11EAD36BE959A83709F187596AE5966BB/styles | /boba/users/userid/styles |
| /boba/search | /boba/search |
| /boba/users/11EAD36BE959A84709F187596AE5966BB/posts | /boba/users/userid/posts |
| /boba/users/11EAD36BE959A85709F187596AE5966BB | /boba/users/userid |
| /boba/users/11EAD36BE959A8709F187596AE5966BB/notifications | /boba/users/userid/notifications |
| /boba/feeds/home | /boba/feeds/home |
| /boba/search | /boba/search |