GUI Based tool for search and replace using regular expression

Hi,
I have developed this small tool which can be used for search and replace in multiple files using reqular expressions.
Features:
1. Full regular expression
2. GUI based with Highlighted results
3. Preview for replace available
4. Pure Java based.
5. Its like unix sed and grep
Please visit below site for download/more information :
http://sourceforge.net/projects/regexsearchrepl/
Thanks,
Hitesh Viseria

I agree with you, it cannot compete grep/sed/awk combination. I couldnt find anything even close to grep/sed for windows which will also have a preview and most important, free. That is what made me write this tool. I am trying to
improve its performance and more features like history etc.
Any suggestions on additional features are most welcome.

Similar Messages

  • Catalog manger "search and replace " using xml script

    Hi ,
    we have renamed 6 rpd columns names in rpd & alias is not removed yet .In catalog manager i can search and replace using string .But it takes lot time as they are stored in different reports , which are existing . I am trying to use xml script for replacing them.I got sample script from help file for single column . can anyone help for doing that for multiple strings.I will provide with my inputs .
    my inputs:
    <?xml version="1.0" encoding="utf-8"?>
    <actions>
    <action command="textReplace" oldValue="column 1 " newValue="column one" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 2" newValue="column two" ignoreCase="true"/>
    <action command="textReplace" oldValue="column 3" newValue="column three" ignoreCase="true"/>
    </actions>
    please correct me .

    Given xml content looks okay but just in case check this oldValue="column 1 ", there is additional space at the end.
    I would suggest to extract Analysis report (.csv) using Catalog Manager and find out the list of reports based on those columns.
    This would help you learn with list of reports based on report owners, and then go for the fixing those reports.
    If you go by xml replace you never know the affected reports and you may not confirm until report owners come back to you with issues.
    This might take little bit time but your changes based on proper doc.
    Let me know updates, if helps mark
    Edited by: Srini VEERAVALLI on Feb 19, 2013 3:21 PM

  • Search and Replace using wild characters

    I have a bit of a problem on my hands while dealing jdom and xml. I am parseing an xml response from a service. The issue is that it contains an element with a colon. Nothing I can do about the service so I have to deal with it. I know I could use DOM and s on but I have chose to use jdom for a couple of reasons. What I am planning on doing is removing the colon in the element names with some sort of search and replace. The problem is that the there could be up to 500 element names with a numeric value. The element name looks like the following ns1:Point, ns2:Point, ns3:Point, and so on. JDom will not handle this so I would like it the element name to look ns1Point, ns2Point, etc. I have the xml returned from the service in a string. Is there any way I can do a search and replace given the above information. Thanks in advance

    Silverfoot wrote:
    I realize that it seperates the name space. The namespace for the element is different than ns1. Maybe I am missing something though
    Using JDOM, I navigate my way through the xml using getChild(elementname, namespace). When i get to ns1:Point, i use the same namespace as previous elements. Are you suggesting that ns1 is another namespace. In that case I would use a second name space to the Point element.I think you're missing a whole lot, actually. You don't seem to know much about namespaces. For a start you're apparently making the beginner error of assuming that the namespace prefix declares the namespace. And this idea:
    What I am planning on doing is removing the colon in the element names with some sort of search and replace.is just wrong. I would suggest you go off and find a tutorial (or a chapter in your XML book) about namespaces.

  • Case insensitive search and replace using ASP and Oracle database

    I am interested in providing a case insensitive search and replace query in a Active server page. At present data is collected from a html form which passes the text values to a ASP page. The ASP page runs a search (select query) to find if the data is already in the Oracle database, if it isn't the ASP page runs sql (INSERT) to insert the record, if not the page returns a form indicating that the record already exists. At present we can convert the case of new records using the VB UCase() function. But can't do a insensitive search with the existing records. *The Query must be able to utilize ASP variables.
    Any help would be much appreciated.
    David Cheryk
    null

    I can't check your script right now since I'm not on Mac. I recommend you to use FindChangeByList script for CS4 instead (it works with CS3): http://forums.adobe.com/servlet/JiveServlet/download/2080627-12695/FindChangeByListCS4.zip together with Martin Fisher's: http://www.kasyan.ho.com.ua/downloads/RecordFindChange_CS3_Kas.zip
    Use this script to record settings from Text and GREP tabs, then copy and paste them into FindChandgeList.txt file.
    Or, optionally you can use this script: http://www.kasyan.ho.com.ua/find_change_by_queries.html.
    Kasyan

  • Multi search and replace using excel file

    I am trying to use a script to open multiple indesign files and perform several find and replaces using a delimited word file containing the searches, this script, plagerised from a quark one, opens files but doesnt S&R, can anybody see the error of my ways?
    -- Indesign docs
    set QFolder to "Please locate the folder containing your Indesign documents..."
    set Doc_Folder to (choose folder with prompt QFolder) as text
    set theFiles to {}
    tell application "Finder"
    tell folder Doc_Folder
    repeat with i from 1 to count of files
    if file type of file i is "IDd5" then
    set end of theFiles to file i as text
    end if
    end repeat
    end tell
    end tell
    -- Search Items
    set QFile to "Please locate your Tab Delimited Text file..."
    set Search_File to (choose file with prompt QFile) as text
    set Search_Rows to read file Search_File using delimiter {return}
    set Search_Items to {}
    repeat with This_Row in Search_Rows
    set end of Search_Items to my GetTextItem(This_Row as text, tab, 0)
    end repeat
    --Process
    tell application "Adobe InDesign CS3"
    activate
    --Clear the find/change preferences.
    repeat with oneFile in theFiles
    open file oneFile
    set find text preferences to nothing
    set change text preferences to nothing
    --Set the find options.
    set case sensitive of find change text options to true
    set include footnotes of find change text options to true
    set include hidden layers of find change text options to false
    set include locked layers for find of find change text options to true
    set include locked stories for find of find change text options to true
    set include master pages of find change text options to true
    set whole word of find change text options to true
    tell document 1
    repeat with ThisPair in Search_Items
    set {searchstring, replaceString} to ThisPair as list
    tell every story
    try
    set (every text where it is searchstring) to replaceString
    end try
    end tell
    end repeat
    end tell
    close document 1 saving yes
    end repeat
    end tell
    on GetTextItem(ThisString, ThisDelim, ThisItem)
    -- ThisString -> String to look in
    -- ThisDelim -> Text element that delimit the string
    -- ThisItem -> Number of the element to return (0 for all)
    copy the text item delimiters to OldDelims
    set the text item delimiters to ThisDelim
    if class of ThisItem is list then
    set fromItem to (item 1 of ThisItem) as integer
    set toitem to (item 2 of ThisItem) as integer
    set arrItem to (text items fromItem thru toitem of ThisString)
    else
    set arrItem to every text item of ThisString
    end if
    set the text item delimiters to OldDelims
    if class of ThisItem is list then
    return arrItem as text
    else
    if ThisItem is not equal to 0 then
    return (item ThisItem of arrItem) as text
    else
    return arrItem -- return every items
    end if
    end if
    end GetTextItem
    Thanks

    I can't check your script right now since I'm not on Mac. I recommend you to use FindChangeByList script for CS4 instead (it works with CS3): http://forums.adobe.com/servlet/JiveServlet/download/2080627-12695/FindChangeByListCS4.zip together with Martin Fisher's: http://www.kasyan.ho.com.ua/downloads/RecordFindChange_CS3_Kas.zip
    Use this script to record settings from Text and GREP tabs, then copy and paste them into FindChandgeList.txt file.
    Or, optionally you can use this script: http://www.kasyan.ho.com.ua/find_change_by_queries.html.
    Kasyan

  • Find/Replace Using Regular Expressions

    Can someone help me with this...I am using Regular expressions to
    FIND:
    http.*lid=([^&"]*)[^"]*
    REPLACE:
    $set(\1,ID_id,code)$
    So that in the following it will change this:
    a href="http://www.test.com/shc/s/home_10153_12605?lid=Search" rilt="Search"
    To this:
    a href="$set(Search,ID_id,code)$" rilt="Search
    Those expressions  work in Notepad++ but when i use dreamweaver it just replaces the http... with "$set(\1,ID_id,code)$" and doesnt reference the "search"
    Any help?
    Thanks

    Let me begin by saying I'm a complete idiot with DW's Reg Ex.   I use Search Specific Tag whenever possible.  See screenshot below.
    Try this on your Current Document to see if it works. Then make a back-up copy of site before attempting it on Entire Local Site as you cannot "Undo" this process.
    Good luck,
    Nancy O.

  • String replace using regular expressions

    I'm not very good at regular expressions, but I would like my script to replace
         <a href="somepage.html">
    by
    <a href="event:somepage">
    How do I do this?  Thanks in advance!

    Replacing a string that matches a certain pattern with another string is one of the more common RegEx tasks. There is documentation on using them here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=12_Using_Regular_Expressions_01.ht ml
    hth,
    matt horn
    flex docs

  • Replace without regular expressions

    Hi,
    Is there a standard java library function that can perform a search and replace WITHOUT regular expressions. Its not so much that I dont want to search by regular expressions, but whenever i have a "$" sign in my replace string it'll chuck a poo. Also, i'm sure regexp has to be much slower.
    thanks,
    Robert.

    Wateva, I'll figure it out. I just thought I might be
    missing a really simple function or somthing.
    Thanks - and enjoy your 'duke dollars' :pFeel free to ask a more detailed question. I don't know how to answer something as general as what you posted. Provide some code, give us an example, tell us what you expect to happen. My sample showed you how to replace a dollar sign, which - as best as I can tell - is the problem you described having.
    I've always considered replaceAll() to be pretty simple...

  • Xml search and replace for 'Session Variables' in column title view

    Hi Experts,
    I have around 10 reports where measure column titles are displayed based the session variable.
    Below is the syntax I have used in the column title
    @{biServer.variables['NQ_SESSION.VariableName']}
    Now I would like to replace the above syntax with some static text. To do this, I am trying to use the xml search and replace feature in the catalog manager.
    For some reason, catalog manager is unable to find the syntax in the xml file. I have tried using escape character also for the apostrophe by using &apos, but no luck.
    Any pointers on how to replace the text?
    Thanks

    Using Analysis get the xml conversion for @{biServer.variables['NQ_SESSION.VariableName']} from Advanced tab's xml code
    use this code to find in catalog manager, if you able to find then go for search and replace option.
    I think this should work for you.

  • Search and Replace in Dreamweaver

    Dreamweaver CS3has a nice search and replace tool allowing for search and replacement of very large text strings.
    Does anyone know of a good notepad editor that can handle that large of replace text strings.
    Seems like most cant handle that much code in terms of search and replace.
    thanks

    If you're looking for something free/cheap that handles multi-line search and replace in source code, then there's always TextWranger if you're on a Mac:
    http://www.barebones.com/products/TextWrangler/
    There are plenty of Windows equivalents, but none I've used extensively and could recommend. This one is free:
    http://www.htmlkit.com/
    ...and has a button to expand the find/replace fields for multi-line content.
    That being said, they're not really going to do anything DW can't if you're already using DW.

  • Regular expression to change Hour:Min:Sec time to Min:Sec using the Search and Replace tool

    Hi,
    I think the title says it all, but I've used a script to export a project from an NLE as a html file with a bunch of images and timecodes within table cells. For example, In=00:00:34 and Out=00:01:30 needs to be converted In=0:34 and Out=1:30. I think the Search and Replace is the most simple way of working that, but I've not experience with Regular Expressions (or much in that regard) so would really appreciate if someone could give me a hand writing the Regular Expression I need to achieve this.
    Thanks in advance,
    James

    Okay, so an example row is:
    <tr>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
    <strong>In: </strong>1:22<br>
    <br>
    </p></td>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
    <strong>Out: </strong>1:24<br>
    </p></td>
    <td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
      <p><strong>Duration</strong>: 2<br>
      <strong></strong></p></td>
    </tr>
    I need to change it to:
    <tr>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
    <strong>In: </strong>1:22 seconds<br>
    <br>
    </p></td>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
    <strong>Out: </strong>1:24 seconds<br>
    </p></td>
    <td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
      <p><strong>Duration:</strong> 2 seconds<br>
      <strong></strong></p></td>
    </tr>
    The script itself is something I found somewhere on the internet - it's for Sony Vegas.
    I've highlighted the changes with bold underlined italics.
    Thanks for you help, guys,
    James

  • Alternate Search and Replace Tool

    I need to automatically search a piece of HTML code in
    hundreds of help topics. Unfortunately, since RoboHelp's
    "Multi-File Find and Replace" tool doesn't accept carriage returns,
    it won't accept the three-line string of HTML I need to replace.
    Can anyone suggest a (hopefully free) third-party
    search-and-replace tool that won't break RoboHelp in some way? I'm
    a bit worried because I'll be pasting a ton of conditional text
    markers.

    Hi, Adam,
    Two find-and-replace tools that are often mentioned in these
    forums are FAR and BK ReplaceEM. FAR is shareware, but free to use
    for the first two months; BK ReplaceEM is freeware.
    http://www.helpware.net/FAR/index.html
    http://www.snapfiles.com/get/bkreplace.html
    Pete

  • How to search and replace in an xml file using java

    Hi all,
    I am new to java and Xml Programming.
    I have to search and replace a value Suresh with some other name in the below xml file.
    Any help of code in java it is of great help,and its very urgent.
    I am using java swings for generating two text boxes and a button but i am not able to search in the xml file thru the values that are entered into these text boxes.
    Thanks in advance.
    **XML File*
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <student>
    <stud_name>Suresh</stud_name>
    <stud_age>40</stud_age>
    </student>Also i am using SAX Parser in the java program
    any help of code or any tutorials for sax parisng is very urgent please help me to resolve this problem
    Edited by: Karthik84 on Aug 19, 2008 1:45 AM
    Edited by: Karthik84 on Aug 19, 2008 3:15 AM

    Using XPath to locate the elements you are after is very easy.
    Try something like this:
    import java.io.File;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import javax.xml.xpath.XPath;
    import javax.xml.xpath.XPathConstants;
    import javax.xml.xpath.XPathFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class BasicXMLReplaceWithDOM4J {
         static String inputFile = "C:/student.xml";
         static String outputFile = "C:/studentRenamed.xml";
         public static void main(String[] args) throws Exception {
              // Read xml and build a DOM document
              Document doc = DocumentBuilderFactory.newInstance()
                        .newDocumentBuilder().parse(new InputSource(inputFile));
              // Use XPath to find all nodes where student is named 'Suresh'
              XPath xpath = XPathFactory.newInstance().newXPath();
              NodeList nodes = (NodeList)xpath
                   .evaluate("//stud_name[text()='Suresh']", doc, XPathConstants.NODESET);
              // Rename these nodes
              for (int idx = 0; idx < nodes.getLength(); idx++) {
                   nodes.item(idx).setTextContent("Suresh-Renamed");
              // Write the DOM document to the file
              Transformer xformer = TransformerFactory.newInstance().newTransformer();
              xformer.transform(new DOMSource(doc), new StreamResult(new File(outputFile)));
    }- Roy

  • Global Search and Replace for Scrambled/Garbled Characters

    So I exported a bunch (over 3000) contacts from my Outlook on Windows by using Outlook2Mac, and also tried just using a straight CSV export. But the Chinese characters came out all garbled, and I no longer have the use of that Windows machine anymore.
    Here's an example:
    Name: ∂¿¨¸™K (May Huang)
    Job Title: ±M§·∏g≤z
    Dept: ¿Á∑~≥B/ODM∑~∞»≥°
    Company: ®Ù•fl∞ͪ⁄
    Address:
    §≠™—∂m§≠≈v§≠∏Ù15∏π
    •x•_ø§
    •x∆W
    I figure I can slowly piece together most of it by doing lots of global search and replaces -- for instance, "•x∆W" should be "台灣" (Taiwan) -- and changing each characters I know one by one.
    Problem is, I can't figure out how to do a find and replace! Can anyone help me out?
    Thanks in advance!
    PowerBook G4 17   Mac OS X (10.4.5)  

    But for the sake of getting a solution to the
    original problem, I wasn't able to export the vCards
    from AddressBook and then do what you said. For some
    reason, I couldn't open the .vcf file in TextEdit;
    kept telling me that the file wasn't encoded in
    "Traditional Chinese (Windows, DOS)" format.
    You need to use the Open dialogue in TextEdit and open the .vcf in something that it will accept. When you export the stuff from Address book, it indeed is not in Trad Chinese.
    I don't have your stuff, so I can't be exactly sure, but it should work something like this. You export everything from Address Book. Use the Open dialogue of TextEdit to open the file, probably as UTF-8. Save as MacRoman. Open again as Trad Chinese (Windows). Save as UTF-8. Reimport. You may need to experiment to find what works right.

  • How do I search and replace for invisibles in Pages 5.5.2?

    Three related problems all involving search and replace for invisibles.
    1. A block of text where all double returns need to become single returns.
    2. A block of text where all returns need to be replaced with a single word space.
    3. A block of text where all double word spaces to be replaced with a single word space.
    Pages 09 could do all three this handily. How can these be done in Pages 5.5.2?
    Appreciated.

    Here are screenshot of my attempts to make reducing double returns to one. First up selection of a double return:
    Copy to the clipboard. Do a Command-F. Here's the resulting dialogue:
    I paste in the contents of the clipboard:
    Note the Search field no longer has an empty slot selected. Something is clearly in there, but no instance of whatever is has been found. Nevertheless, I proceed to set up the Replace field by selecting a single return:
    Copy that to the clipboard and paste into the Replace field:
    Nothing to search for and therefore nothing to replace. Am now wondering what that little scoop to the right of the eyeglass icon might indicate. Clicking on it reveals this:
    Definitely not "a solution that just works."

Maybe you are looking for

  • Jobs with a startevent and starttime

    hello, I'd like to plan a job in an abap program which is started when an event is raised or a certain timespan has passed. When planing the job by using the functionmodules job_open, job_submit and and job_close I can supply an event and a startdate

  • Pro photo lab having trouble with customer's lightroom images

    I am not a Lightroom user.....I am a pro photo lab using Noritsu equipment and Kodak DP-2 software.........when I import files converted to JPG in Lightroom, they have a pasty,yellowish, flat, lifeless quality.not at all as they appear when displayed

  • Outlook 2010 "losing messages"

    Outlook 2010 SP2 Exchange 2010 SP2 Client domain joined AutoArchive disabled (completely via GPO, the option doesn't even exist in Outlook anymore as result) Outlook view reset User has email disappearing from inbox in Outlook. but it still exists in

  • HELP: java.lang.IllegalStateException: Response has already been committed

    I have a little problem. I'm trying to draw a graph is JSP. And I did it. I'm my computer works fine with no problems. But I have a server and when I try to run the program there it appears this error message. My computer : Pentium 4 1.6 GHz O/S : Wi

  • Drop Transation Log Files in SQL server

    Hi friends,               I am useing sql server 2005 , in my databse transation log file is increased up to 20 GB ,so i am adding  one more transation file , so i want delete pervious unused transation log file,so what is the procedure for drop the