Skip to main content
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

mygis
Contributor
Forum|alt.badge.img+12
  • Contributor
  • June 30, 2016

@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.

mygis
Contributor
Forum|alt.badge.img+12
  • Contributor
  • June 30, 2016

@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

Forum|alt.badge.img

Hi @jlmark

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

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings