This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How to replace a line based on some text
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 13, 2010
04:33 AM
How to replace a line based on some text
I want to replace whole line based on some pattern. I mean i dont want to match whole line contents but wants to replace whole line.
please help!
Thanks in advance..
please help!
Thanks in advance..
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 13, 2010
04:45 AM
You've got the Modify Text File - Single File action, with the Configure Search and Replace Strings, where you can search for the respective line and replace it with the line of your choice!...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 13, 2010
05:26 AM
My problem is not getting resolve by this feature. and the reason is that my line is dynamic and only some text is static. So I have to replace whole line based on that static text.
for eg. search text1 ("Myport=****") replace with text2 ("NewPort=9000")
TIA!!!
for eg. search text1 ("Myport=****") replace with text2 ("NewPort=9000")
TIA!!!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 13, 2010
07:55 AM
Then you may want to use regexp (regular expressions) or custom code.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2010
04:08 AM
what does regexp (regular expressions) or custom code mean ?
So I need to do it in another way or InstallAnywhere has other function to do with it?
So I need to do it in another way or InstallAnywhere has other function to do with it?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2010
07:10 AM
For regexp take a look here: http://community.flexerasoftware.com/showthread.php?t=190440&highlight=regexp
For Custom Code you may want to check the manual: IA has an API which allows you to add functionality that might not natively exist, using Java.
For Custom Code you may want to check the manual: IA has an API which allows you to add functionality that might not natively exist, using Java.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 25, 2010
08:09 PM
pv7721 wrote:
For regexp take a look here: http://community.flexerasoftware.com/showthread.php?t=190440&highlight=regexp
For Custom Code you may want to check the manual: IA has an API which allows you to add functionality that might not natively exist, using Java.
Thanks for the response. Here is another question: how to package a static folder which contains dynamic files? Becuse new file may added in folder sometimes, but I just saw the static links for folder and file in installanywhere. Is there any way for installanywhere to locate the new file and package automatically without adding new file manually
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2010
02:55 AM
The solution to that would be SpeedFolders.