Find/replace all other cases
I have a lot of numbers that I copied from Excel - they are separated by tabs, and returns, and I want to turn them into a table.
My problem: I want to replace any other tab character and automate this process if possible.
example - I want that:
1.02 25.9 [TAB] [TAB] [TAB] 0.61 15.5 [TAB] 0.90 [TAB] 22.9
1.08 [TAB] [TAB] 27.4 0.64 16.3 [TAB] [TAB] 0.92 [TAB] 23.4
(where [TAB] is actually a tab character)
to look like this:
1.02 (25.9) 0.61 (15.5) [TAB] [TAB] 0.90 (22.9)
1.08 (27.4) 0.64 (16.3) [TAB] [TAB] 0.92 (23.4)
Is it possible to use find/replace to replace each other tab with a "("?) "
Thanks in advance,
Mike
mikeborgsdorf wrote:
Is it possible to use find/replace to replace each other tab with a "("?) "
Sure! GREP mode, search
(\d+\.\d+)\t(\d+\.\d+)
Tags: InDesign
Similar Questions
-
InDesign script for a text of color replace all other lines in a text box
I have a very long list of names I need to alternate the color CMYK, all other rows value.
changing the hue of every 3rd line:
var i, p; for (i=0; i<app.selection[0].paragraphs.length; i++) { p = app.selection[0].lines[i]; if (i%3 === 2) { p.fillTint = 50; } }
I tried to change the script to change the value of CMYK, do this:
var i, p; for (i=0; i<app.selection[0].paragraphs.length; i++) { p = app.selection[0].lines[i]; if (i%2 === 1) { p.colorValue=[0,100,100,0]; } }
But using 'colorValue' is not supported. How can I change the script to do all the other lines in a text box to change the value of the color?
var i, p, color; for (i=0; i
-
Find/replace any other compulsory return with a soft return
I have a document that returns all hard. I need to convert each other hard return in a soft return, fortunately the hard return is after a ZIP code.
I currently have in the grep search field:
\d{5}\r
This will find / select 5 numbers of the line followed by the mandatory return. Awesome!
But... There is always a right?...
All 5 digits and mandatory return are selected, then when I try to replace the hard back with a
\n
he wiped out the numbers with her. Not great.So is there a way to grep to get back the 5 numbers he selects and place a soft return after him? or y at - it a way to simply select the hard return after the 5 digits?
Other solutions you might think will work, I'm willing to try it too.
Use a look-behind...
I think (?.)<=\b\d{5})\r ought="" to="">=\b\d{5})\r>
-
keyDown replaces all other keys
I want to capture some pressure on keys, so I can use the keypad as a "controller" of sort... but I want that all the other buttons to act as usual.
How would I go to do this?
//this manager is used for the static background image mainManager = new VerticalFieldManager( NO_HORIZONTAL_SCROLL | NO_VERTICAL_SCROLL ) { protected boolean keyDown(int keycode, int time) { try { if (keycode == 5701632 || keycode == 5701666 || keycode == 5701633) { } else if (keycode == 4521984 || keycode == 4521985 || keycode == 4522018) { } else if (keycode == 5373952 || keycode == 5373953 || keycode == 5373986) { } else if (keycode == 5439488 || keycode == 5439489 || keycode == 5439522) { } else if (keycode == 4456448 || keycode == 445644 || keycode == 4456484) { } else if (keycode == 4587520 || keycode == 4587521 || keycode == 4587554) { } else if (keycode == 5898240 || keycode == 5898241 || keycode == 5898274) { } else if (keycode == 5767168 || keycode == 5767169 || keycode == 5767202) { } // blackberry button else if (keycode == 268566528) { } // red button else if (keycode == 1179648) { } // back button else if (keycode == 1769472) { } } catch (MediaException e) { // TODO Auto-generated catch block e.printStackTrace(); } return true; } protected boolean keyUp(int keycode, int time) { return true; } };
Or do I actually code for all the other buttons?
Hi footose,
You must return false, if the key was not consumed by your method, in order to tell the system that the key should be covered in more detail. Means, in your structure, you should return true if the key was one you expected and treats you to false otherwise.
You may want to consider implementing your if structure like a switch-case structure. Is better to read afterwards for maintenance.
Kind regards
Carsten
-
dominant touch event handler replaces all other fields
I have the code following, which uses gestures to perform scrolling on my hfm, but substitution of this hfm, replace essentially all fields on the screen, making them useless. How is this possible, I thought that this specific touchEvent belonged to the hfm? How to work around this problem and just disable scroll for the hfm?
gallery = new CustomHFM(){ protected void sublayout(int maxWidth, int maxHeight){ super.sublayout(maxWidth, 200); setExtent(maxWidth,200); } protected boolean touchEvent(TouchEvent message){ int eventCode = message.getEvent(); if(eventCode == TouchEvent.GESTURE){ System.out.println("SWIPE GESTURE"); TouchGesture g = message.getGesture(); int gesturecode = g.getEvent(); int direction = g.getSwipeDirection(); //gallery.setHorizontalScroll(page_two, true); if(direction == TouchGesture.SWIPE_WEST) slideNext(); if(direction == TouchGesture.SWIPE_EAST) slidePrev(); pressed = true; } if(eventCode == TouchEvent.UP){ pressed = false; //slide(); } return true; } };
I want to just do not use the default scroll and do my own thing! Any suggestion would be appreciated, I'm really in the fire right now.
OK, this is a different problem. I suspect that you must reject touch events that are not actually within your HFM. Then add code like the following at the beginning of your touchEvent method:
int x = message.getX (1);
int y = message.getY (1);
If (x < 0="" ||="" y=""> < 0="" ||="" x=""> getExtent () .width: y > getExtent () .height) {}
Outside the scope
Returns false;
}If this is not enough, so be sure that your touchEvent method is called. If it really is, then I think you have a problem with a Manager. You have all Directors complicated on your screen. Try to simplify the screen so that you don't use native components RIM (and nothing implying positioning as AbsoluteFieldmanager and see if the problem persists.) If so, then see if you can post an example of the sample that shows the problem so that we can all try.
-
ARCserve 12.1 can save ONLY 1 VM (all other cases of failure)
According to this message:
http://communities.VMware.com/thread/101703?TSTART=0 & start = 24
Everyone using it? Or has any idea about what this could be the case?
Thank you
SEB
I tried to help determine where the problem may be, be it with the snapshot through vcbSnapshot process, or only with the configuration of the backup agent.
Others will work as well.
-KjB
-
Telephone number Facebook replaces all other contact phone numbers
The title pretty much everything said.
I have a facebook contact who has added their phone number to facebook. This phone number is only available when you view the contact through the contact application and when typing his name in the phone app. Because the number is wrong, I can't call!
I tried to add additional numbers, nothing helps...
Help! How can I change the default phone number?
Just made a discovery: apparently, the algorithm used by webOS to detect the same GSM number is simplistic.
I added a leader + on the phone gmail is hidden the number and all of a sudden, the phone number of gmail has resumed and the number of facebook.
This solved my problem, but the behavior of webOS is still very strange. I expect to be able to choose among all the available numbers for a contact.
-
Table of files - last item replaces all others - SEO problem
I use the following structure: Applet-> MasterFile-> DirectoryFile-> file
now simply file consists of:
public class File { private byte[] aid; public File (byte aid[]) { this.aid = new byte[(short) 6]; Util.arrayCopy(aid, (short) 0, this.aid, (short) 0, (short) 6); } public byte[] getAID() { return aid; } }
DirectoryFile for the moment only this:
public DirectoryFile(byte[] aid) { super(aid); }
now in the main folder, I have a class addDF to add a new DirectoryFile to a predefined DirectoryFile table (I omit the constructor is easier to read):
byte numApp; // number of applications DirectoryFile[] arrayDF = new DirectoryFile[8];// 8 possible applications // constructor public byte addDF(byte[] aid) { numApp++; arrayDF[numApp] = new DirectoryFile(aid); return numApp; }
and in the real applet I add a DirectoryFile for the main folder as follows:
MasterFile master; numApp = adfptse.addDF(aid); apdu.setOutgoing(); apdu.setOutgoingLength((short) 24); for (byte i = 2; i <= numApp; i++) apdu.sendBytesLong(master.arrayDF[numApp].getAID(), (short) 0, (short)
For the moment, I just want to print all aid recorded so far in the table.
For the first call with for example. AID = A10101010101 it simply responses to AID
Now when I call later with AID = B20202020202 it answers with B20202020202 B20202020202... so I guess I'm only referring to a place and by adding a new AID, I also changed the referenced.
Since I can't clone an array in java card I don't know what else to do to make this work!
Hello
It looks like a problem with indexing in a loop.
I think in the next line,
"apdu.sendBytesLong (master.arrayDF [numApp] .getAID ()...". "it should be 'I' instead of 'numApp' and 'i' should start from"0"loop.
If it's not wrk giv SMEs more details of the code if it can be shared.
ARO
PPT
-
Find/replace the numbers?
I like very much all my numbers in small caps, but always manually go through and change them all. Can I find/replace all numbers with a number of small capitals? CS3/Mac
You can do this by using a GREP.
1. go in the tab GREP in the FInd\Change dialog box find it what field type in \d
2. in article Format change click on the empty area and in the dialog box that opens, go to the tab "Basic character Formats" and chose small caps of the case drop down. OK to the dialog box
3. change all
You can save this query to other references.
Thank you
Javed
-
can I find/replace the leader tab character?
I have a Word document that I'm slope in ID and there are a lot of different tab with the leaders of the dot stops. The dot leaders are a simple point, but I want not a 'space-point' in order to spread them out more.
I can't understand how to find a tab with a character specific point leader and change to another - if it was a uniform set of rules of text I want to make a Style with what I wanted and find/replace all, the problem is, is that there are a few pieces of text with two tabs three and four as well as "BOLD" and regularly mixed in so I have to make a Style for all versions of tab stops and it's longer than I want to take with it.
So, is it possible to change only the leader? What is Grep something?
TIA
ID CS5 7.0.4 MacPro 8-core, 14 GB of RAM, Snow Leopard
I think that may have to be scripted?
However, you can do a search for "^ t".
And increase the tracking/kerning in the change format (200 should do)
Maybe do a replace/find so you can't change something unexpectedly.
-
Asked if Framemaker has a global find and replace function cancellation capital letters in sentences. I remember vaguely word being able to do that, but it's been some time that I used Word. I inherited a document in which the author used caps init on almost everything.
Find/replace is powerful in FrameMaker but doesn't address this specific issue. If you want to stay in FrameMaker remedy, you can either:
1. Enter the text formatting toolbar to access the case for change (dark red) buttons:
2. use keyboard shortcuts:
-
Is it possible to invoke() 'All change' in find/replace?
Hi all
Is it possible to invoke() 'All change' in find/replace?
Kind regards
Cognet
Maybe, maybe not (()) - but it's not necessary. changeText() is already a whole change.
(*) I guess not because invoke() concerns only the menu commands.
-
Find and replace all occurrences of a string within the current paragraph.
I did so much work, and it's my last method to implement.
I want to get the current active doc the current paragraph and replace all occurrences of a string inside this paragraph with another string.
For example, say I have the following paragraph in a document:
«This is a sentence that.» This is another sentence. It is also another sentence. The sentence ".
If the user opens the document containing the paragraph and goes to this paragraph by clicking in any place in there, I want to replace e.g.g "another punishment" with "phrase.
But only in the current active paragraph in the active document.
I found a code with F_ApiFind and F_ApiGetTextRange to get the current text selection, but I can't think of a way to do it.
Post edited by: Efstathios Chatzikyriakidis
Problem solved people. Thank you.
-
Without any input from me, my Inbox went to 12 April. All other folders, deleted items still contains items deleted two weeks ago sent items and folders are still there intact. There is an Inbox.dbx file, which is a great, this could be where they were and how to open it?
Two reasons the most common for what you describe is disruption of the compacting process, (never touch anything until it's finished), or bloated folders. More about that below.Why OE insists on compacting folders when I close it? :
http://www.insideoe.com/FAQs/why.htm#compact
Why mail disappears:
http://www.insideoe.com/problems/bugs.htm#mailgoneRecovery methods:If you are running XP/SP3, then you should have a backup of your dbx files in the Recycle Bin (or possibly the message store), copied as bak files.To restore a folder bak on the message store folder, first find the location of the message store.Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.In Windows XP, the .dbx files are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.Close OE and in Windows Explorer, click on the dbx to the file missing or empty file, then drag it to the desktop. It can be deleted later once you have successfully restored the bak file. Minimize the message store.Open OE and, if the folder is missing, create a folder with the * exact * same name as the bak file you want to restore but without the .bak. For example: If the file is Saved.bak, the new folder should be named saved. Open the new folder, and then close OE. If the folder is there, but just empty, continue to the next step.First of all, check if there is a bak file already in the message. If there is, and you have removed the dbx file, go ahead and rename it in dbx.If it is not already in the message, open the trash and do a right-click on the file bak for the folder in question and click on restore. Open the message store up and replace the .bak by .dbx file extension. Close the message store and open OE. Messages must be in the folder.If messages are restored successfully, you can go ahead and delete the old dbx file that you moved to the desktop.
If you have not then bak copies of your dbx files in the Recycle Bin:DBXpress run in extract disc Mode is the best chance to recover messages:
http://www.oehelp.com/DBXpress/default.aspxAnd see:
http://www.oehelp.com/OETips.aspx#4A general warning to help avoid this in the future:Do not archive mail in default OE folders. They finally are damaged. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
http://www.oehelp.com/OETips.aspx#3And backup often.Outlook Express Quick Backup (OEQB Freeware)
http://www.oehelp.com/OEBackup/default.aspx -
Thank you for your advice in this thread http://answers.microsoft.com/en-us/windows/forum/windows_xp-windows_update/why-does-security-update-for-microsoft-office-xp/fa6c7729-c772-e011-8dfc-68b599b31bf5 . I have Microsoft Office XP Service Pack 3 installed on my coimputer and I am able to install all other updates Microsoft except this one (Office XP (KB2289162). I tried your suggestion to turn off my antivirus and then install the stand-alone package. However, it is still impossible to install. This time, I receieved an error message referring to the lack of permission to make changes in Microsoft Office Small Business Edition (which is the version of Office that I have). I don't know why this would be the case, since I have never had a problem with update of Microsoft Office in the past.
If you or someone else has other suggestions, I'd appreciate them.
Thank you.
Hi Mike,.
Thanks for the reply, the steps were actually written originally for Windows XP and are still valid. As you can see in the SubinACL download it is designed to work in all versions of windows. The indications in the thread (also posted here) should help you reset the permissions problem. Once again, the reason for which we do, it's because the update fails to install due to permissions on some files/registry values. Rather than browsing manually, then find the specific that does not respect these steps reset them to the default settings and must
1 download subinacl.msi from following link and save it to the desktop.
http://www.Microsoft.com/downloads/details.aspx?FamilyId=e8ba3e56-d8fe-4a91-93Cf-ed6985e3927b&displaylang=en#AffinityDownloads (http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b&displaylang=en#AffinityDownloads)
2. on the desktop, double-click subinacl.msi to install the tool.
3. Select as destination folder C:\Windows\System32.
Note This step assumes that Windows is installed in C:\Windows. If Windows is installed elsewhere, select the path appropriate to \System32.
4. open Notepad.
5 copy the following commands, and then paste them into the open window of the notebook .Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = administrators = f
Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = administrators = f
Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = administrators = f
Subinacl % lecteur_systeme % /subdirectories / Grant = administrators = f
Subinacl /subkeyreg HKEY_LOCAL_MACHINE/Grant = system = f
Subinacl /subkeyreg HKEY_CURRENT_USER/Grant = system = f
Subinacl /subkeyreg HKEY_CLASSES_ROOT/Grant = system = f
Subinacl % lecteur_systeme % /subdirectories / Grant = system = f6. in Notepad, click file, record underand then type:reset.cmd
7. in Notepad, click Save as type, and then select all files (*. *).
8. save the reset.cmdfile on your desktop and close Notepad.
9. double-click on the reset.cmdfile to reset permissions in Windows Update.
Note This step can take several minutes, so please be patient. When permissions have been reset, you will be prompted to "finished, press any key to continue."
10. Press any key to finish the installation.resolve this question.
Maybe you are looking for
-
I want to move my old phone to ios 9.2.1
OK, so I have an old iphone (4 s, ios 6.1.3) and so when pokego came out, I wanted to upgrade to ios 9 to play. However, the phone says that "you are no longer connected to the internet" I tried to update using a mac, but mac just says that my itunes
-
HP Pavilion Notebook - 15-p206: Windows 8.1 backup
My HP pavilion Nooteboom knows the windows 8.1 operating system. This laptop is to have pre defined 24.4 GB as recovery partition. Now, I want to take backup of the operating system windows 8.1 in USB key. So I can copy this recovery disk and paste i
-
What key am I wrong hit which changes the zoom on my laptop HP Pavilion?
-
Message from Outlook Express 6 sent does not close
All of a sudden, when I compose or reply to a message and then click on send, the message remains on the screen, as if it has not been sent. When I open the sent items folder, the message was sent. Any ideas what is the cause?
-
I just had a call from someone who says they're on MS Windows and they received my computer error messages. They wanted me to open the box run the program. Anyone know what this type of scam? Happens a little?