Need simple GREP string
I have a simple task that I have to accomplish and I could use a simple command GREP to do, but I still have to understand what it is. Here's what I have:
a paragraph break a number (numbers 1, 2 or more) and a new paragraph break. I find it easily with the Find command: \r\d+\r
I need to replace with a single paragraph breaks and place brakets in front and behind the numbers without changing the numbers. If I use the $0 in the chain of change that he leaves still including the digit or if I use [$0] on change, it puts parentheses in but leave the paragraph breaks. I'm not there's something simple I'm missing here, but I have yet to understand what it is. Can someone please?
Sorry, left out the spaces. Change [$ 2]
Tags: InDesign
Similar Questions
-
Search broken in CC2015 grep string
Our company has just migrated cs6 CC2015. Several of our workflow is based on a simple grep search which has worked flawlessly for the CS6.
(^\d+|\d+$)
I need to enter one or more numbers at the beginning or end of a line (for a specific paragraph style). The end of the line "\d+$" returns no results in CC2015 while it is part of the alternation. The beginning of the return of fine line matches. On its own, the end of the part of the line works very well. Any ideas?
((^\d+)| (\d+$)) seems to work. It will not find numbers at the end if the paragraph begins with a digit, however.
-
Hello people,
I need help with a very simple GREP expression, I want to format all the occurrences of a Word only at the beginning of each paragraph. What is the term for a Word only at the beginning of each paragraph?
Thank you.
Just add ^ in front of the word you're looking for
-
Communication controller need simple pci for an old hp dc 5800 desktop
Original title: looking for always
communication controller need simple pci for an older hp dc 5800 desktop vista business 32-bit
Communication controller map Add-ons, are hard to find at low prices... Try this link.
http://www.serversupply.com/controllers/
This company has what it ever developed for a pc, new/used/rebuilt...
Also, look at the hardware of pc from amazon.com
-
My camera a San Disk SDHC is full. You want to re - use? Need simple directions.
Hello
My camera San Disk SDHC card is full and I would like to re - use.I need simple instructions on how to scrub clean for re-useI do not have old photos. Can I reformat it or howI would remove the old photos to so I can re - use the card?step by step would be helpful.Thank you.Hello
Your camera software will be instructions on erasing the internal memory of the device, or in your case, the external memory (map)
See you soon.
-
(Help) I need simple code for Bluetooth connection in the Eclipse IDE
I need simple code for Bluetooth in the Eclipse IDE connection because I do not know tutorial http://docs.blackberry.com/en/developers/deliverables/11938/Use_a_Bluetooth_serial_port_connection_5...
Please help me, thanks for all
Use the tutorial for 5 SDK (or lower), each SDK has its own set of samples.
-
Urgent need help with String Manipulation
Hello;
I really need help with strings.
Let's say I have these channels:
\\ABC\DEF\GHI\xyz\xyz\xyz\xyz
\\ABC\DEF\GHI\xyz\
\\ABC\DEF\GHI\xyz\xyz\xyz\
\\ABC\DEF\GHI
\\ABC\DEF\GHI\
ABC/DEF/GHI/xyz/xyz/xyz/xyz
ABC/DEF/GHI/xyz /.
ABC/DEF/GHI/xyz/xyz/xyz /.
ABC/DEF/GHI
ABC/DEF/GHI.
I need to convert them using a SQL statement for:
\\ABC\DEF\GHI\xyz\ or //ABC/DEF/GHI/xyz/ according to the original management / or \. Please note that the "xyz" may be repeated zero or more times. I just need one end with a trailing / or -if she had one first.
I'm on Oracle 11.1.6 SE. I have a bunch of attempts with instr, substr and replace, but I think that regexp_replace could be better.
Any help would be GREAT! I have a whole team waiting on me.Hello.
Here is a way.
----------------------------------------------------------------------- with sample_table as ( select '\\ABC\DEF\GHI\xyz\xyz\xyz\xyz' str from dual union all select '\\ABC\DEF\GHI\xyz\' from dual union all select '\\ABC\DEF\GHI\xyz\xyz\xyz\' from dual union all select '\\ABC\DEF\GHI' from dual union all select '\\ABC\DEF\GHI\' from dual union all select '//ABC/DEF/GHI/xyz/xyz/xyz/xyz' from dual union all select '//ABC/DEF/GHI/xyz/' from dual union all select '//ABC/DEF/GHI/xyz/xyz/xyz/' from dual union all select '//ABC/DEF/GHI' from dual union all select '//ABC/DEF/GHI/' from dual ) select str, regexp_replace(str,'(xyz([/\])*)+$','\1') new_str from sample_table; STR NEW_STR ------------------------------ ------------------------------ \\ABC\DEF\GHI\xyz\xyz\xyz\xyz \\ABC\DEF\GHI\xyz \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI\xyz\xyz\xyz\ \\ABC\DEF\GHI\xyz\ \\ABC\DEF\GHI \\ABC\DEF\GHI \\ABC\DEF\GHI\ \\ABC\DEF\GHI\ //ABC/DEF/GHI/xyz/xyz/xyz/xyz //ABC/DEF/GHI/xyz //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI/xyz/xyz/xyz/ //ABC/DEF/GHI/xyz/ //ABC/DEF/GHI //ABC/DEF/GHI //ABC/DEF/GHI/ //ABC/DEF/GHI/
Kind regards.
-
Simple problem: need help with string functions
I'm sure it's easy, but it's late and I'm tired.
If I had a string that contained a full name for example.
< cfset name = 'John Smith' >
How would manipulate the string so I could separate in two variables for example.
FirstName = 'John '.
LastName = 'Smith '.
See you soonSwampie says:
> How would manipulate the string so I could separate in two variables for example.
> firstname = 'John '.
> lastname = 'Smith '.pretend it's a list delimited by spaces.
name = 'Jane Doe';
Switch (listLen (name,"" ")) {}
case 1:
manage single names
break;
case 2:
firstName = listFirst (name,"" ");
lastName = listLast (name,"" ");
break;
case 3:
firstName = listFirst (name,"" ");
middleName = listGetAt ("name, 2," "");
lastName = listLast (name,"" ");
break;
} / / switchprobably need a break by default for > 3 names.
-
Need a Grep Expression to change a space between braces.
Hey all -
I know that it must be ridiculously simple for someone who knows about Grep.
I have a string of text between braces, like this:
{namevalue = 'Firstname Lastname'}
And I would like to add a special character or a word between the first and last name, so I can make some additional changes to the structure via find/replace.
So, I would like to change to this example:
{namevalue = "first name last name$ $$"} or this: {namevalue = "FirstnameKAPOWLastname"} or this: {namevalue = "Firstname12434Lastname"}
You get the picture. Any help will be greatly appreciated.
Like this:
({"Search: (\{namevalue=".+)? \s(?=.+? "\})
Replace with: $1 @.
(/ / start capture)
\{NameValue=' / / literal {namevalue ="
.+? followed by one or more of any character.
) / / end of capture
\s / /... until the first space...
(?=.+?" \}) {/ /... but only if followed by some characters ending by}
It might be simpler-
Search: (\{namevalue=".+?) \s
Replace with: $1 @.
Need coffee.
Peter
-
Need simple explanation - move iTunes library to new PC
I'm looking for a simple explanation of the functioning to the iTunes library to MOVE from one PC to another. The current/old computer will go far. KEY: need to keep notes of the song and playlists. The last time I did I lost the scoring for thousands of songs and lost all the selections.
Old computer is Windows 7
New is Windows 10
Is there a software that will do this for me?
THANKS FOR THE HELP!
- Where appropriate, consolidate your library so that all media included in the library are stored in iTunes standard media folders
- Copy the complete library (whether as a result of the default values of iTunes, this will be C:\Users\username\Music\iTunes) from the old PC to the location on the new PC
- If the library is small, if would be possible to copy over a network or using a USB
- for large libraries, use an external hard drive as an intermediate storage device
- Although the Windows copy and paste standard functions ' should be enough, third-party utility (I use Terracopy), or the method described in the user tip of turingtest2 on the backup of your iTunes for Windows with SyncToy library, may be more resistant to errors possible/interruptions during the copy process
- If you have already installed and launch iTunes on the new PC, you need to overwrite all the files/folders is already present in C:\Users\username\Music\iTunes (this implies that you haven't added all the new PC which is not present on the old media).
- Now launch iTunes on the new PC - the method described above ensures that data from the old PC iTunes (which is where are stored all your playlists, ratings, etc.) is available on the new.
- An additional advantage to do this correctly, is that the new PC has now a physical copy of the same logic of the old library, so all iDevices will see this 'the same' library and you can continue the synchronization operations without risk of deletion of the device.
-
Firefox 7.0.1 on Win7 pro 64
Hello team FF & community.
sometimes FF 6/7 shows a VERY strange behavior:
While 'normal' things on Web sites (click on the links, edit text, scrolling, evolution of the tabs boxes) FF starts to ignore my simple clicks. The only way to work is with double-click instead of single-click (i.e. for links, enter a SBO, switch tabs, even to open a menu of Firefox) for all actions.Previously, the last example was about a minute
https://plus.google.com/circles/find
While moving to a "circle" contact - FF changes only are allowed double clicks. No errors, no message.
I found this behavior buggy on many different sites - simple websites and with complex features, too - in the past few weeks since bf6 + 7 are current versions.
With my other two questions, I get the idea that the current releases of FF contain more bugs in versions between FF1 to FF3.
OK, I think that this issue (change of behavior: needs double click to get the reaction of simple click)-isRESOLVED: -
I have disabled all addons and enabled/tested one by one... it was, apparently, the add-on "Multi links 3.0.0.16" was the problem.
I replaced it with "Snap Links 2.1.1" (installed, but not yet tried a new), and less than a week daily work of 10-12 I never got this bug again.
SOLVED!
-
Newbie need help with string concatenation function.
I'm totally new to LabView and am trying to work on a project that someone worked in the past. I came to a string function concatenated on one of the existing provisions and only seen on some entries of the string function has an order of 'rel' and 'g '. I don't know if it's a common command or what it is. This is VI is that it requires a user to enter a base dimension (x-axis starting point and end point) and executes the steps in the sample desired within the "point of departure" and "end point". "a3" is the name of the x-axis. but I'm not sure of the meaning 'rel' and 'g '. I posted part of the diagram. Any help would be appreciated. Thank you!
This isn't a question of LabVIEW, but very specific to the device connected to the other end of the serial port. Do you have any documentation for it?
Basically, the program needs form a consiting of command of a delimiter character, value and end of key word, etc. for example.
Who wrote this program. It seems too complex and convoluted. Under certain conditions, it seems to send two commands at the same time, and there is no way to determine the order in which they run. Maybe it doesn't matter, but maybe it does. Most likely, what you need is a single structure dealing with a case for each condition and a unique series in the end writing. You can reach the actual program? There are also a lot of duplicate code. What is the purpose of the operations 1 x? Is this a Subvi?
-
Hi all
I hope that the simple request to you...
I want to find the word starting with http:// or www.
(find all words url start by http:// or www.)
How can we catch using GREP or TEXT.
Another question:
In Grep we use. + to find the n number of characters
In the text that we used?
Could someone help with my request.
Thanks in advance
Beginner
Hello
app.findGrepPreferences.findWhat = "http. + ? (? = \\s)|www.+?) (?=\\s)";
There is no wildcard multiplier in the tab 'text '. If you type ' ^? ^ ? ^ ? "ID will match exactly 3 'any character', not less, not more then 3 from last game and so forth.
Use Grep.
Jarek
-
Pavilion m7-1015 need simple low pass load
I need to back MS.
Hello
Thanks for your quick response.
Here are the most recent MS driver HP get on there Web site:
-
I installed Oracle Developer with success, but having bad connect to Sql more than command line, also unable to connect via the developer tools, I get a TNS: Connect timeout occurred. This happens also for the "Plus" Sql for Windows.
However, I can connect via the Sql Plus command window when it is executed from "Start-> all programs", but not when I first run the command window:
I have a good Oracle 11 g install on Windows 7 and a good developer Sql install so I can connect to databases, but something does not work when you try to connect through these tools. Although Sql Plus works when called from 'Start-> all programs'
sqlplus scott/tiger - don't use SQL * Net, you can connect like this even with the listener is stopped.
Developer SQL can ONLY connect using SQL * Net & can be blocked by the firewall
to connect using sqlplus & SQL * Net, you need to invoke it as below
sqlplus scott/tiger@orcl
Maybe you are looking for
-
I had damaged my phone and Rec'd a refurbished Iphone s 5, Assurian, for an insurance claim. (all transferred, but the phone was defective and returned and replaced with another refurbished iPhone 5 s) Yet once implemented with the help of AT & T Te
-
Digital potentiometer through materials
Does anyone have a quick reference to material that contains a digital pot? Is there material that does this? Can you create a digital pot through materials? Thank you.
-
HP Deskjet F2480: Windows 10 HP Deskjet F2480 drivers
Hello I recently updated my Windows 7 to Windows 10 and my printer drivers do not work. I need the drivers dedicated for Windows 10 please. If they exist, that they are not displayed on the page of the driver for the F2480. Thank you.
-
Why my cursor always indicates busy?
Why my cursor always indicates busy?
-
Timer.exe the error closes prog. down
I get application error "Exception EAccess TeaTimer.exe violation to the 00025E0C module address 000425E0C access violation write address 000000. Also when I try to open the image file I get an error message "Internet Explorer is unresponsive and wil