The idea is that every string contains the structure “house-number” without considering the spaces between them. So a correct solution would be “house - number” or “house- number” as well.
“House” and “-” can be separated by whatever number of blank spaces, as well as “-” and “number”.
edit: i need sth similar to HOUSE /n+ - /n+ number
where number is a integer number between 1 and infinite
How could I remove such a structure contained in the string if it exists?
For instance, if the string is " fdsfsd house - 3232 fdsfdsdssd fdsfsd fdsfsd " then I would like to remove house - 3232 so that the final string will be:
Yes, it works in that particular case, but every case will be different. “house” followed by a “-” and a number will be common in all cases, but such a number will be different.
fdsfsd house - 2 fdfsfsdf
fdsfsd house-1 fdsfsd fdsfsd
fdsfsd house - 4 fdsfsd
fdsfsd house - 3232 fdsfdsdssd fdsfsd fdsfs
use this “house[\s-]*\d+” in matches to extract and then get output like outRegex
and use for each loop and get pass this variable to it and use assign activity like this NewStrVariable =“fdsfsd house - 3232 fdsfdsdssd fdsfsd fdsfs” .Replace(item.ToString,“”)
cheers @EngAnalyst