Hi ,
I'm trying to return all the characters after a $ in a file name into a custom column.
Can anyone please let me know the script for this.
Thanks
How to return all characters after a $ in a file name into a custom column
Re: How to return all characters after a $ in a file name into a custom column
Code: Select all
return gettoken(<cc_name>, 2, "$", , 2);
One of my scripts helped you out? Please donate via Paypal
Re: How to return all characters after a $ in a file name into a custom column
I should have probably added that I don't want the file extension to be included on the return.
How to exclude that?
How to exclude that?
Re: How to return all characters after a $ in a file name into a custom column
<cc_base>
One of my scripts helped you out? Please donate via Paypal
Re: How to return all characters after a $ in a file name into a custom column
return gettoken(<cc_base>, 2, "$", , 2);
Works perfect, Thanks!
Works perfect, Thanks!
Re: How to return all characters after a $ in a file name into a custom column
return gettoken(<cc_base>, 2, "$", , 2);
How do I return everything after the dollar sign for files and folders? I selected files and folders in item type for the above but on folders it only returns everything after $ up to the decimal. Ex. $628.25 will return 628 on folders in the custom column
How do I return everything after the dollar sign for files and folders? I selected files and folders in item type for the above but on folders it only returns everything after $ up to the decimal. Ex. $628.25 will return 628 on folders in the custom column
Re: How to return all characters after a $ in a file name into a custom column
Code: Select all
$base = <cc_isfolder> ? <cc_name> : <cc_base>;
return gettoken($base, 2, "$", , 2);
One of my scripts helped you out? Please donate via Paypal