Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

replace

$
0
0
How to replace the string if any text contains some words it has to replace with some value


For example


In my csv file i have two columns and multiple rows with pipe delimited format


Pms|url
?Name?,?sno?|http://localhost:8080/pentaho?Name=?Name?&sno=?sno?
?Name?,?sno?,?address?|http://localhost:8080/pentaho?Name=?...ress=?address?


what i need is it has to search and replace the url column whenever the url content contains with pms columns it has to replace with some value


my final urls has to be formed like below
output
========
http://localhost:8080/pentaho?Name="aaa"&sno=123
http://localhost:8080/pentaho?Name="aaa"&sno=123&address="ABCDEFG"

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>