Replacing soft returns with hard returns in search and replace PM7
How do I search and replace soft returns in PM7 with a
hard return? What do I type in the find box?
Yes BigJohnD,
That is the answer! Thanks so much.
I had hunted for that chart but had not found it yet.
Thanks again, You have been so helpful.
MargoHollis
Similar Messages
-
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. -
Search and Replace String throwing the wrong error message with regexp?
This came up in a LAVA thread, and I'm not sure if there's a bug here or not. When using Search and Replace string, and using a regular expression of [(G[b|i])], LabVIEW throws error -4622, "There is an unmatched parenthesis in a regular expression." There are obviously no unmatched parenthesis in that expression, so it seems to me that the wrong error is being thrown. I'm just not sure if that's a syntactically valid regexp. The problem seems to be with nesting [ ]'s inside ( )'s inside [ ]'s. I've tried a couple of regexp resources on the Web, and one suggests it's valid, while the other seems to think it isn't.
Message Edited by eaolson on 03-13-2007 10:33 AM
Attachments:
ATML_StandardUnit2.vi 10 KB
regexp.png 5 KBadambrewster wrote:
I think your regexp is invalid.
In regexps, brackets are not the same as parentheses. Parens are for grouping, while brackets are for matching one of a class of characters. Brackets can not be nested.
If the regexp is replaced with [G[bi]], there is no error, so it's not a matter of nested brackets. I couldn't find anything on the PCRE man page that forbids nested brackets specifically, but it makes sense.
Your expression "[(G[bi])]", therefore parses as a character class which matches '(', 'G', '[', 'b', or 'i' followed by an unmatched paren, and an unmatched bracket.
I don't believe that's the case. Replace the regexp with [(Gbi)], and the error goes away. So it's not a matter of the '(' being literal, and then encountering a ')' without a matching '('.
daveTW wrote:
what string exactly you want to replace? I think the round braces are not right in this case, since they mark partial matches which are given back by "match regular expression". But you don't want to extract parts of the string, you want to replace them (or delete, with empty <replace string>). So if you leave the outer [( ... )] then your RegEx means all strings with either "Gb" or "Gi".
It's not my regular expression. A poster at LAVA was having problems with one of his (a truly frightening one), and this seemed to be the element that was causing the problem. I'm pretty sure that the originator of the regexp meant to use G(b|i), which seems like a complicated way of matching "Gb" or "Gi", if you ask me. -
Problem with search and replace
I'm workin on Windows XP, Dreamwearver 8
When I do a search and replace in a site, the changes will be
made correctly, however, the auto date stamp that I'm using on my
pages will duplicate on random pages and overwrite text This
doesn't occur on all pages, and isn't connected with the actual
change I'm making. Has anyone experienced this?Ok Gary, but...
in a SQLWorksheet write:
ababab
Now Edit -> Replace search for b , replace with \nb
Result (the last b is not replaced):
a
ba
bab
At this point, I want to have my string back on one line: Edit -> Replace search for \n , replace with (nothing here)
Result: The search text "\n" was not found.
And to make it work I have to tick the Regular Expressions checkbox (in this case substitute escaped characters is ignored).
While I agree that "it is good to have a choice", I personally find it confusing: none of the few text editors I use (Linux or OSX) behaves this way.
Regards.
Alessandro -
Hello All,
I want some help. Please help me.
I have comma delimited Data. When I’m converting Sting to Array, If two commas exists in between then its displaying “Zero” (because its array propriety ). Instead of that I want to display “NaN” .
Please give me any idea to replace comma to NaN. I tried with Search and Replace but it’s not giving as I expected.
Munna
Solved!
Go to Solution.Hello GerdW,
Thanks you so much for your reply.
I thought, instead of replacing trailing comma by NaN adding comma before string is more better (because to many string manipulations) But, it’s taking more execution time.
Munna
Attachments:
Search and Replace.vi 415 KB -
Search and Replace "Column Break" with "Page Break"?
Hi,
I have been using the "column break" where I really should have been using the "page break". The page break just makes more sense in my layout.
Is there anyway to search and replace the column break with a page break?
Thanks,
Rhek -
Search and replace formulas with AppleScript
Thanks to this forum I've found out that it is possible to search and replace text by other text or formulas with AppleScript in Numbers 3.2
Does anybody have a script to search and replace a formula or a part of a formula by another formula or a partial formula.
For example:
I would like to be able to find:
= Table1::$b$3
and replace this by:
= Table1::$b$4De Signature,
Would this approach work for you...
This is a very neat way edit a complex formula in a single cell....
a) Copy and Paste the formula to a new black page in Pages,
b) Do your Find and Replace, then
c) Copy and Paste the formulae back into the cell in Numbers.
It works like a charm.
Here is an example of how I used this approach...
Original cell formulae:
=AVERAGE(
SMALL(OFFSET(K3,1,0,20,1),1),SMALL(OFFSET(K3,1,0,20,1),2),
SMALL(OFFSET(K3,1,0,20,1),3),SMALL(OFFSET(K3,1,0,20,1),4),
SMALL(OFFSET(K3,1,0,20,1),5),SMALL(OFFSET(K3,1,0,20,1),6),
SMALL(OFFSET(K3,1,0,20,1),7),SMALL(OFFSET(K3,1,0,20,1),8))
Final version of formulae:
=AVERAGE(
SMALL(OFFSET(K3,N1,0,20,1),1),SMALL(OFFSET(K3,N1,0,20,1),2),
SMALL(OFFSET(K3,N1,0,20,1),3),SMALL(OFFSET(K3,N1,0,20,1),4),
SMALL(OFFSET(K3,N1,0,20,1),5),SMALL(OFFSET(K3,N1,0,20,1),6),
SMALL(OFFSET(K3,N1,0,20,1),7),SMALL(OFFSET(K3,N1,0,20,1),8))
Find Replace: be cautious with the Find, to ensure it is unique, in my this example ",1,", to avoid changing the" ,1)"
Enjoy... -
Search and replace with wildcard?
I always use search and replace with Homesite but I wonder if
there is a way of using a wildcard? I often want to replace text at
the beginning and end of variable text. I mean, if I have this:
<h3>First text</h3>
<h3>Second text here</h3>
What I'd like is, using the * as a wildcard, is to use
something like this:
Replace <h3>*</h3> with <h2>*</h2>
Any ideas? ThanksMake a backup first, in case this doesn't work (although it should).
Use this in the Find field:
countryText = "([^"]*)";
And this in the Replace field:
<countryText>$1</countryText> -
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." -
How do I search and replace in comments in Acrobat XI?
I use a Mac and just downloaded Acrobat Pro XI specifically to search and replace phrases in comments in a large PDF. According to this Adobe Help page, I should be able to do this: https://helpx.adobe.com/acrobat/using/searching-pdfs.html I copied the relevant section below and marked with ***. However, I don't see I don't see an arrow for the options that would allow me to include comments. I understand how to include the comments with advanced search, but I want to also replace text. I also checked in preferences and searched the forums. Could someone please advise and maybe include a screenshot, if possible. Thanks!
Choose Edit > Find (Ctrl/Command+F).
Type the text you want to search for in the text box on the Find toolbar.
To replace text, click Replace With to expand the toolbar, then type the replacement text in theReplace With text box.
(Optional) Click ***the arrow ***next to the text box and choose one or more of the following:
Whole Words Only
Finds only occurrences of the complete word you type in the text box. For example, if you search for the word stick, the words tick and sticky aren’t found.
Case-Sensitive
Finds only occurrences of the words that match the capitalization you type. For example, if you search for the word Web, the words web and WEB aren’t found.
Include Bookmarks
Also searches the text in the Bookmarks panel.
***Include Comments***
Also searches the text of any comments.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." -
Search and replace in a applet
Hello,
I have a string "jds" that looks like this
http://ns2.taproot.bz/thumbs2/1.jpg
I have been using this to replace "thumbs2" with "big" and create a url
URL my_thumb = new URL(jds.replaceAll("thumbs2", "big"));however now that im making this code into a applet, this no longer
works. Could some one please suggest a way around this.
Thanks,
jdreplaceAll method in String is available only from 1.4 onwards.
http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String).
You could use a method to search and replace a String with another...
public String replace (String source, String search, String replace) {
StringBuffer result = new StringBuffer();
int start = 0;
int index = 0;
while ((index = source.indexOf(search, start)) >= 0) {
result.append(source.substring(start, index));
result.append(replace);
start = index + search.length();
result.append(source.substring(start));
return result.toString();
} -
How can I search and replace fonts?
iOS 7 doesn't support the Adobe workhorse fonts I've most relied on for years, and arbitrarily changes them to iOS built-in fonts when I link my standard documents and templates to the iPhone, via iCloud. There's no apparent logic to how it does this; a Pages document in Minion Pro, a serif font, gets changed to the sans-serif Helvetica. Myriad Pro may come out in Times New Roman. I accept that the iPhone's limited number of fonts makes translation necessary, but does Pages offer a way in which I can search and replace inappropriately substituted fonts for more logical alternatives?
You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
Only then you have a reliable counting order.
This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
function byPageYX(a,b) {
var
aP = a.parentTextFrames[0].parentPage.index,
bP = b.parentTextFrames[0].parentPage.index,
aY = a.baseline[0],
bY = b.baseline[0],
aX = a.horizontalOffset[1],
bX = b.horizontalOffset[1],
dP = aP-bP,
dy = aY-bY,
dx = aX-bX;
return dP?dP:(dy?dy:dx);
myResults.sort(byPageYX);
Or something like that.
As for actually implementing the above I cannot be of any help with Applescript.
Once we're dealing with sorting I think you're much better off in Javascript anyhow. -
RE: (forte-users) search and replace within aTextData
Welll, you're both right. The MoveToChar makes it unnecessary (if a little
sloppy) to MoveNext as long as you've changed the character. thus,
outStr: TextData = new;
outStr.SetValue(inStr);
while (outStr.MoveToChar(' ')) do
outStr.ReplaceRange('_', outStr.Offset, outStr.Offset+1);
end while;
return outStr;
works fine to change blanks to underscores.
Regards,
David
-----Original Message-----
From: Campbell, Dave [mailto:DCampbellpurolator.com]
Sent: Friday, 14 January 2000 0:58
To: 'Matthew Middleton'
Cc: kamranaminyahoo.com
Subject: RE: (forte-users) search and replace within a TextData
If you do not use the MoveNext method to skip beyond the "found" character,
a subsequent invocation of MoveToChar will find the same character, located
at exactly the same offset.
If there is no match, MoveToChar returns FALSE and the current offset does
not change.
----- Original Message -----
From: Matthew Middleton <mathew.middletonlawpoint.com.au>
To:kamranaminyahoo.com
Unless I'm missing something here...you needn't go through every
character...use MoveToChar()...as per Help...
while (TextdataObj.MoveToChar (' ')) do
end while;
Regards,
Dave Campbell
Consultant,
Caro Systems Inc.
Mailto:Dave.CampbellCaroSys.com
For the archives, go to: http://lists.sageit.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.sageit.comWhy not this:
while myText.moveToString(' ') do
myText.ReplaceRange('-', myText.Offset, myText.Offset+1);
end while;
or if you prefer verbosity:
while myText.moveToString(source=' ') do
myText.ReplaceRange(source='-', startOffset=myText.Offset,
endOffset=myText.Offset+1);
end while;
-----Original Message-----
From: FatchJeBAM.com [mailto:FatchJeBAM.com]
Sent: Wednesday, January 12, 2000 2:51 PM
To: Troy.Burnsvacationclub.com; kamranaminyahoo.com
Subject: RE: (forte-users) search and replace within a TextData
How about this?? May have to play with start/end on ReplaceRange as I
didn't really test this
Anybody got a better way??
-- replace space with underscore
For x in 1 to myTextdata.LengthToEnd() do
If myTextData.IsSpace() then
MyTextdata.ReplaceRange('_'. Startoffset=myTextdata.offset,
endoffset=myTextdata.offset+1);
End if;
MyTextdata.MoveNext;
End for;
Jerry Fatcheric
-----Original Message-----
From: Burns, Troy [mailto:Troy.Burnsvacationclub.com]
Sent: Wednesday, January 12, 2000 9:40 AM
To: kamranaminyahoo.com
Subject: (forte-users) search and replace within a
TextData
Hello all,
I need to search within a textdata object, replacing all
occurrances of a
space
with another character. Can you give a quick code example
of how I would do
this?
Thanks in advance,
Troy
Troy Burns
Marriott Vacation Club Intl.
E-mail: troy.burnsvacationclub.com
Phone: (941) 688-7700 ext. 4408
For the archives, go to: http://lists.sageit.com/forte-users
and use
the login: forte and the password: archive. To unsubscribe,
send in a new
email the word: 'Unsubscribe' to:
forte-users-requestlists.sageit.com
For the archives, go to: http://lists.sageit.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: forte-users-requestlists.sageit.com -
Perform search and replace in a custom command?
Hello,
Does anyone know how to perform a search and replace for selected text in a custom command?
My specific dilemma is this: I have a large document containing [very poorly formatted] songs. For example:
<p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
<p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
<p>Verse1 Verse1 Verse1 Verse1 Verse1</p>
<p>Chorus Chorus Chorus Chorus</p>
<p>Chorus Chorus Chorus Chorus</p>
<p>Chorus Chorus Chorus Chorus</p>
<p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
<p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
<p>Verse2 Verse2 Verse2 Verse2 Verse2</p>
<p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
<p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
<p>Verse3 Verse3 Verse3 Verse3 Verse3</p>
I would like to be able to select all the text in a verse and run my custom command on it that would remove the "<p>" and replace "</p>" with "<br />".
Thanks,
KelsoreplaceAll method in String is available only from 1.4 onwards.
http://java.sun.com/j2se/1.4.1/docs/api/java/lang/String.html#replaceAll(java.lang.String, java.lang.String).
You could use a method to search and replace a String with another...
public String replace (String source, String search, String replace) {
StringBuffer result = new StringBuffer();
int start = 0;
int index = 0;
while ((index = source.indexOf(search, start)) >= 0) {
result.append(source.substring(start, index));
result.append(replace);
start = index + search.length();
result.append(source.substring(start));
return result.toString();
} -
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
nullI 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
Maybe you are looking for
-
Hi All, I am writing a report to get data related to material master and download it to excel sheet. While downloading I need to use a separate tab in excel sheet for each area of the material master, for example, a tab for Basic 1, Basic 2, MRP1, et
-
HT4933 i want to buy additional space for my i phone
i want to buy additional Space one year not for 1 month . can you help me ?
-
hi expert's , i wanted to know how we can do bapi with java ...? how we can retrive data from java. means what will be the coding for java? may be m not able to explain but plz help me with this... Regards P
-
Here is my scenario. ASA acting as a VPN server for incomgin client connections. The ASA outside interface has a 192.168.8.X address. Infront of the ASA is a internet connected firewall that has a one to one NAT mapping from a public routable IP to
-
Variable overloading problem - please help
Hi I have a simple program that needs to read in a decimal OR octal OR hexadecimal number, calculate the result into a decimal value and spit it out to the user. However I am little concerned as to what type can I use so the user doesn't over load my