Skip to main content

Hi

I am extracting multiple hrefs. There are some irregular CSS tags that are being rejected. I have corrected the spaces by using a stringreplacer but there are a couple I cannot figure out. one being "Unsupported or invalid CSS selector: "democratic-republic-of-congo-(kinshasa)"

I need to remove the parenthesis, there are also ones with the word "the" at the end of the CCS href.

 

I only have about 12 of these, so is there a way to replace an entire href with another and I will just create 12 transformers?

 

any ideas?

Hi @tmtech,

The StringReplacer can also remove characters from the source string - just leave Replacement Text blank. You can remove multiple characters by using Replace Regular Expression in Mode. To remove the parentheses, and 'the' at the end of a line, use Text to Replace = \\(|\\)|the$.


Reply