Hi!
I have run into an issue and need some help.
I’m creating a workflow where a part of the output of one process is the input of another process. For the first process I’m saving the output as a .txt file. The content of the file is “Project id: 001”. However I only want the actual project id as input for the next process, therefore I only want to save “001”.
The code (related to this issue) I have so far is the following:
// create a channel for input of project id
project_ch = Channel.fromPath('./results/output.txt').splitText()
This gives me “Project id: 001”. However, I cannot seem to understand how I can remove a part of the string so that it gives me “001”. If possible I would like this to be done by adjusting the channel.
Can someone please guide me on how to solve this, thank you ![]()