Question

stringreplacer to replace one specific entire line of data in an LAS file?


I'm trying to find the line that begins with "API" and insert a file number (from the file name itself) after that API reference. The goal is to overwrite any data/text that appears after the API with only the file number. I've got and extractor and a stringreplacer in place, but wanted to know if there are "wildcards" that can be used in FME to help accomplish the replace. TIA


3 replies

Badge +8

@jlmark could you please provide with a sample string before and after replacing the text? in some cases RegExp would be the answer but I just want to make sure that's what you want.

 

You can take a look at his post.
Badge +8

@jlmark could you please provide with a sample string before and after replacing the text? in some cases RegExp would be the answer but I just want to make sure that's what you want.

 

You can take a look at his post.

 

 

https://knowledge.safe.com/questions/22681/more-about-regular-expression-regexp.html
Badge

Hi @jlmark

you probably need a StringReplacer with parameter settings similar to these:

Somebody might be able to suggest a more elegant way :)

Reply