(GREP)? for search and replacement of para returns before a lowercase letter
Does anyone know an automatic technique (GREP?) to find and replace para returns occurring before a letter lower case and replacing it with a space (IE to join broken paragraphs). I can currently find these occurrences, but 'change' in the grep search replaces the real lowercase letter as well as the break of Pará.
See you soon
Alan
Don't know if this has been published here, or what, but in my email the request came as \\r(?=\l) and it's too many------characters before the r should be when it reads now, \r(?=\l)
Tags: InDesign
Similar Questions
-
Advanced search and replace. How to replace the space with carriage return?
10.9.13.0/24, 10.9.4.2/32, 10.9.4.3/32 in
10.9.13.0/24
10.9.4.2/32
10.9.4.3/32Find replace them ',' with carriage return.
I still find articles on an advanced search and replace, but I can't seem to locate it.
OS X El Capitan 10.11.3
3.6.1 the numbers
HI Brendan,
You don't need an advanced find and replace for it.
In the search box, press, then space.
In the box replace by, press option-return.
Then click Find and replace and find until you are finished.
Kind regards
Barry
-
GREP: Search and replace
Does anyone know if its possible to take a list (shown on the lower part of the image) and run a GREP search and replace to create the list of tabs (shown on the picture)?
I know that the majority of it can be made with the regular search and replace: separate the first and last name; MD and MD #; Postal code and telephone number.
What I was not able to understand is how to add a tab forward and backward the state abbreviations 2-digit, the Middle Initial, phone number and more important even if there is a way to add tabs in when there aren't the same amount of lines, such as the field of specialty.
I know that I can use the GREP search and replace to add a tab before each paragraph back, then remove the tab where there are 2 paragraph after each game returns, then substituting a tab and a paragraph back to just a tab, together running all the rows in each set.
Any help would be greatly appreciated, and if there is anywhere I can learn more about GREP, I would love to learn it.
Thank you
Peter
Peter, try this...
Find:------.<>
Replace: \t$0
-
GREP: date/time search and replace
Hello world
I frequently import XML files into InDesign. The XML structure always contains the following, among others:
start date
start time
end date
end time
For example, it looks like this:
21.08.2013
09:00
25.08.2013
18:00
Now, I need to reorder these fields in a single line, like this:
21.08.2013, 25.08.2013, 09:00-18:00
I already found a way to do it through GREP, but I need to go one step further:
If the "start date" and "end date" is the same (for example, both are "21.08.2013"), I would like to move the "end date" in the output. It should look like this:
21.08.2013, 09:00 - 18:00
Is it possible to do it through GREP?
Thanks in advance!
This will do
Trevor
// By Trevor http://forums.adobe.com/thread/1261365?tstart=0 app.doScript("formatDates ()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "GREP: date/time search and replace"); function formatDates () { app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r\\d\\d:\\d\\d\r\\d\\d\.\\d\\d\.\\d\\d\\d\\d\r(?=\\d\\d:\\d\\d\r)"; var doc = app.activeDocument, dateFinds = doc.findGrep(), l = dateFinds.length, dates; while (l--) { app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)"; dates = dateFinds[l].findGrep(); app.findGrepPreferences.findWhat = "(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r(\\d\\d:\\d\\d)\r(\\d\\d\.\\d\\d\.\\d\\d\\d\\d)\r"; if (dates[0].contents == dates[1].contents) app.changeGrepPreferences.changeTo = "$1 $2 - "; else app.changeGrepPreferences.changeTo = "$1 $2 - $3 "; dateFinds[l].changeGrep(); } }
-
Help with GREP search and replace
I've never used grep before and I'm stumped. I have a document that lists the times for different classes. Times are variously listed as 9-10, 9-10, 9-10 or 9-10, to get examples. The problem is that there may be no space or a space on the left or the right of the hyphen. I want it all the time as 10:30 - 11:30, for example. In other words, the link must have a space on each side of it. I think that this could be accomplished with GREP search and replace, but I don't understand the syntax well enough to make it work.
Can someone tell me how to write the search and replace expressions? (Of course the real time could be any hours).
Thank you!
It is tempting to add spaces of * all numbers separated by a dash. If you don't know all time have some minutes, then it is safer to use this:
(?<=:\d\d)>=:\d\d)>
.. Replace with space hyphen space.
He seeks the "settler, any digit, any digit" (which is * found * not * included *), followed by 'optional of a space, a hyphen, optional space' and must be followed by 'any number' (again, not counting this one). Since the figures before and after are * found * not * included *-which is due to the (? xxx) syntax - all that needs to be replaced is the dashboard itself. Making the space before and after the optional dashboard (using a single "?" immediately after each), no matter if it * is * a space or not, all the combinations will be found and replaced.
-
Replacement of soft returns with hard returns to the search and replace md7
How to find and replace the soft returns in md7 with a
required return? Type in the box search?
The code for non-text characters is in the PM, helpfiles under "special characters".
¶paragraph symbolALT + 7^ 7forced line breakShift + enter^ n -
Search and replace for the color gradients?
Just discovered new "Find and replace" tool which is very neat. However, I can't make it work with gradients. "Finding" a specific gradient if you replace all the forms with that color with another color United or degraded degraded? (Using Flash CS6; although entry users of old versions of Flash welcome whether applicable...)
Hi Evilbob0,
Search and replace for color, supports only solid colors.
Gradients are not supported (in - Flash Pro CS6 and CC).
Thank you
Smriti
-
[CS5 JS] excluding the Notes of search and replace
Hello
Does anyone know how to exclude all text within a Note of a search/replace, text or grep operation?
I went through and systematically all the findChangeGrepOptions that had the word "include" in false:
includeLockedStoriesForFind: false
includeLockedLayersForFind: false
includeHiddenLayers: false
includeMasterPages: false
includeFootnotes: false
just to check, but nothing has worked. myText.changeGrep () has again changed the text in the note.
Of course, it would be pretty easy to write a wrapper function
var myChangeGrep = function( textObject, checkNotes ) { checkNotes = checkNotes || false; results = []; // Go through and run changeGrep on all the // parts of the textObject that are not contained inside Notes, // (or just run it on the entire textObject if checkNotes is true), // and push the results to the results array as we go along. return results; };
but it has the disadvantage that it returns a table and not a collection of InDesign, as does the regular changeGrep. In addition, as simple as it may be, it would be easier if there was a preference somewhere to take care of this.
Any idea?
Thank you!
There is no preference for that: the scope of search and replace can be set only with five preferences that you have already tried. (In the same way, you can not include/exclude tables.) findGrep() and changeGrep() return an array, for that matter, not a collection.
-
I have to do a reformat complicated of an entire site. It is simplified to a series of search and replace tasks for each file. Each search and replace string was recorded in a .dwr file. Currently, I load and run each .dwr file.
How batch or automate this task in Dreamweaver? In other words, a series of files .dwr to consecutively run the tail?
OK, here we go.
This example, a simple command of Dreamweaver Extension, run two find and replace commands in a go. (It can be any number of commands find and replace).
The first command replaces 'the' and 'this' "phe" and "phis". The second paragraph command replaces
- ...
- ...
You need two files: an HTML file (for the UI) and a Javascript file (for actions). I named the 'Find and replace Test.html' and 'find and replace Test.js. (They can be any name).
Find and replace the file Test.html
Find and Replace Test Find and replace Test.js
function canAcceptCommand() { return true; } function commandButtons() { return new Array("Go!", "doIt()", "Cancel", "window.close()"); } function doIt() { dreamweaver.setUpFindReplace({ searchString: "th(e|is)", replaceString: "ph$1", searchWhat: "document", searchSource: true, useRegularExpressions: true }); dreamweaver.replaceAll(); dreamweaver.setUpFindReplace({ searchString: "<(/?)ul>", replaceString: "<$1ol>", searchWhat: "document", searchSource: true, useRegularExpressions: true }); dreamweaver.replaceAll(); window.close(); }
Basically, you can call any number of this pair of functions in the script:
dreamweaver.setUpFindReplace(findAndReplaceObject); dreamweaver.replaceAll();
Place these JS and HTML files in this directory:
Application Dreamweaver/Configuration/Commands Directory.
Then in Dreamweaver, open the window "insert." (You need to open an HTML file in order to make the active insertion window.) Above the insertion window, there is a drop down category ("Common" etc.). Do alt + click (ctrl + click) - then you'll see a 'Reload Extenesions' element at the bottom of the drop-down list. This will load this extension of DW. (Alternatively, you can restart DW to load the extension.)
It is now ready to run the Extension. Open an HTML document that you want to change. Go to the 'orders' in the menu bar. At the bottom of the drop-down list, there is an article "find and replace Test." Select and enjoy
Notes
- This example is configured to perform the search and replace on the active document. You can change the scope to the whole of the site, or the files selected, etc., as in the dialog box find and replace. The doc of the API is here: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed a.html
- You can use dreamweaver.setUpComplexFindReplace (xmlQueryString) command instead. xmlQueryString is essentially
... in your .dwr file, you can copy files .dwr. However xmlQueryString must be a continuous string (no line breaks), which can be a pain in the doc: http://help.adobe.com/en_US/dreamweaver/cs/apiref/WS5b3ccc516d4fbf351e63e3d117f9e09bcf-7ed 9 html
General ordering example Extension in the doc: http://help.adobe.com/en_US/dreamweaver/cs/extend/WS5b3ccc516d4fbf351e63e3d117f53d6ec3-7fe 6 html
I hope that all these wise...
--
Kenneth Kawamoto
-
Search and replace the string formatting
Hello
I try to do a search and replace the formatting of a string.
In the example, I'm looking for the string 'SUCCESSFUL', but it must also begin by usbflash and some number + PASSED.
I can't get the format to have a number between 1 and 99. The number of replacements should add up to 6 in this case. I tried with \d for any number, and I also tried [1-99].
Make a right-click on the function search and replace the string. There is an option to use regular Expressions. Then give it a try.
EDIT: You need to set the entry replace all to TRUE.
-
File save to preserve search and replace queries when reinstalling?
I need to uninstall and reinstall CS6. I have a large number in search and replace queries that would be extremely difficult to redefine. How do I save these as well as other features such as the areas of work or Actions in PhotoShop?
Your saved queries find/replace are in a folder in your library to the user or the user's profile (depending on your operating system). You can find the path to where they are stored in the information provided for the InDesign Defaults file to replace your preferences. The folder queries saved is in the same folder as the InDesign Defaults file. Note that this is a HIDDEN on all recent operating systems folder.
There was also a case of workspaces in the same place for ID. Similar records should be found for other programs under their respective application folders to the same location of the user's library/profile.
-
How can I use search and replace to replace the title of the doc with copy of the h1 content?
I have a site with about 300 pages which have the same title. I need to replace this title by the same text that appears in the h1 tag on the page (each page is different). Of DW search and replace it? If so, how? I don't really want to go have to go to each page and copy/paste.
jeffsure wrote:
Is there a way to tell him to put only the first h1 tag in the title?
I'm really motivated now to learn regex!
Yes. Just use the following regular expression instead of the previous:
([^<> [\S\s]+?)([^<>
The field is to replace the same.
The question mark is the [\S\s]+ a lazy search, stopping at the first]
rather than doing a greedy research that concludes the last
in the page.
The regex for learning is difficult, but it can be very rewarding. I would only like the best.
-
What is the best way to do a search and replace on a business catalyst site. I need to serch for a piticular password and change to something new in the world, it is located? Is there an easy way to do it in British Colombia?
Hello
British Colombia has this feature if the change within a content website with the permission of the Publisher.
You can also use Dreamweaver search and replace feature as well when you change your site BC.
Kind regards
-Sidney
-
Try to find the queries of search and replace
OK, I thought I knew where it was. I looked at
C:\Users\phyllis\AppData\Local\Adobe\InDesign\Version 6.0\en_US\Caches
He has here called FindChangeData and FindChangeDataTmp files, but write them in the folder for the Version 7.5 does nothing.So I think I'm looking in the wrong place. I'm moving all the queries search and replace in InDesign CS 5.5. Can someone point me to them?
Thank you, Phyllis
Try C:\Users\
\AppData\Roaming\Adobe\InDesign\ ------ ------. -
Illustrator search and replace
Hello
Can someone tell me if it is possible to function JavaScript illustrators search and replace text?
I know that it is possible in InDesign, but I can't find anything for Illustrator.
Thank you very much
Nik
Hi Nik, no need to dig down to the words, we search the whole textFrame.contents. Here's a working example
var active_doc = app.activeDocument; var search_string = /blah/gi; // g for global search, remove i to make a case sensitive search var replace_string = "lalala"; var text_frames = active_doc.textFrames; if (text_frames.length > 0) { for (var i = 0 ; i < text_frames.length; i++) { var this_text_frame = text_frames[i]; var new_string = this_text_frame.contents.replace(search_string, replace_string); if (new_string != this_text_frame.contents) { this_text_frame.contents = new_string; } } }
Maybe you are looking for
-
This popup occurs whenever I select an account in the Web page to view its details. Once I click OK it disappears, but appears again when when I select another account for display. It is not a barrier to the operation but rather boring.
-
Why Satellite Pro A60 beep sometimes while working normally?
Hello Every now and then I hear a beep loud echo while using my A60, what does this indicate? I'm afraid that I had to have my laptop repaired twice under warranty and now the warranty is out, I don't want to end up with costly repairs. First time ou
-
8610: all in. A hp8610 printer prints not dell Pc running with Windows 10
I just bought a HP 8610 printer one to replace an old printer HPF2480. I have installed new drivers from hp.com and everything was OK. I created the printer over an Ethernet connection to my router. When I printeed from my iPad it worked fine but sin
-
Hello I'm working on a better solution for my project. I use an Edimax IP camera (model IC - 3110p) I currently streaming using VLC X asset control and then call the node to add the target and play the stream. I was able to find the raw video stream,
-
installation of same updates keep
Whenever I'm going to close my computer updates 1To 5 keep installation.