General Discussions

Discuss any topics that are not product-specific here.
解決済み

Regex replace in a new column

cltccross
メテオロイド

Hi Community,

 

I'm new to this tool, and hit a roadblock on what might be a simple task. I need to extract the date from URLs and write the dates alone to a new column. Is there a way to do this on Regex? I'm only able to replace the current cell as it is using the expression (\d+)[-](\d+)[-](\d+)

 

Any other simpler way to do this would be great as well, if there are no Regex solutions.

6件の返信6
binuacs
アルクトゥルス

@cltccross One way of doing this

 

binuacs_1-1673018185432.png

 

 

cltccross
メテオロイド

That was super quick! Thanks

JamesCharnley
パルサー

Hey @cltccross I'm glad you got a solution quickly! If you're interested in learning you'd be able to do this without Regex using string functions with something like this:

 

JamesCharnley_0-1673018501049.png

 

binuacs
アルクトゥルス

@cltccross Another approach that you followed using the Regex Tokenize method

 

binuacs_0-1673018908292.png

 

cltccross
メテオロイド

Thanks a ton, James. I wasn't even aware of string functions till now!

cltccross
メテオロイド

This works best! Thanks a lot. I was using the Tokenize wrong, it seems.

ラベル