Skip to main content
Question

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

  • June 29, 2016
  • 3 replies
  • 48 views

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

mygis
Supporter
Forum|alt.badge.img+15
  • Supporter
  • 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

mygis
Supporter
Forum|alt.badge.img+15
  • Supporter
  • 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.

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 :)