GREP advice please

I am new to GREP. I need to be able to adapt a GREP code I googled.
It is  \[\w{4,20}\]
This is an example text
[Stockholm] [New York] Paris [London]
By using
\[\w{4,20}\]
in GREP find/change
I can find [Stockholm] and [London] so I can apply formatting there but it misses New York becase thats two words. In my example I want a GREP statement that will find [Stockholm] +  [New York] + [London] for formatting (but omit Paris).
Note that I actually have sets of 10-20 words in brackets, new york was just an easier example to cite here.
If I can also remove the square brackets at the same time it would be a help but I can get those anyway with a normal Find/Change after.
Can anyone help me?
R. Svensson
Stockholm
Sweden

Try this GREP search:
Find: \[([\w\s]+)\]
Change: $1
(Add your formatting in 'Change Format')
It will match any alphabetic character (including spaces) between brackets and replace that with the same text, except for the brackets.
As for the case of "Paris", I see in your sample text that it is not between brackets, so the expression won't toch it. If that is not the case always, please let us know.

Similar Messages

  • New System Build feedback/advice, please...

    Time to build a new WorkStation. My motivation for upgrading is that I have been using a mediocore laptop (i7m, 8gb, 250gb ) from my work as my home system for the last 2 years, I am starting to get more freelance coming in and need a good desktop.
    I am not so sure about my processor, mother board and video card choice. I am more interested in app usability than absolute throughput and want to maximise my dollar investment.
    Purchase date: this week
    Budget:  I'd like to stay close to $1000-1300, but can spend more for significant performance gains. As I do more  research, my inclinations are trending higher.
    System Usage: My primary uses will include photo editing with Lightroom and Photoshop, 3D graphics using 3D studio Max, Maya and Mud Box, HD video editing using Premiere and After Affects and  Web Design. I will also use it as an HD media player and hifi audio is important. Maximizing cs6 performance in premiere & pShop is my main target. I am focused mainly on user experience while running these apps. If I need to encode hrs of video or crank out frames in max/maya, I can do it at work. I seldom run games.
    Monitors: I'm running two Dell U2410's IPS, calibrated w\Color Munki, one portrait one lanscape.
    Parts to Upgrade: Full system build
    O/S : Win7 Ultimate, I might play with Ubuntu/Virtualization
    Vendor: Newegg unless I can save big $$ else where. I like B&H.
    It needs to be an Intel machine & I have chosen lga 2011 becuase I'll eventually go to 64gb. I'll do some modest overclocking.
    Any advice is appreciated. Thank you for your expertise.
    Processor:
    Intel Core i7-3820 Sandy Bridge-E 3.6GHz (3.8GHz Turbo Boost) LGA 2011 130W Quad-Core Desktop Processor BX80619i73820
    $299 w/ship
    http://www.newegg.com/Product/Product.aspx?Item=N82E16819115229
    or
    Intel Core i7-3930K Sandy Bridge-E 3.2GHz (3.8GHz Turbo) LGA 2011 130W Six-Core Desktop Processor BX80619i73930K
    $569 w/ship
    http://www.newegg.com/Product/Product.aspx?Item=N82E16819116492
    Do you have any feeling about how much I'll gain by going to the 6 core cpu over the 4 core? Remember, for me usability in the cs6 apps is more important than marginal gains in throughput.
    Mobo:
    MSI X79A-GD45 (8D) LGA 2011 Intel X79 SATA 6Gb/s USB 3.0 ATX Intel Motherboard with UEFI BIOS
    $218 w/ship
    http://www.newegg.com/Product/Product.aspx?Item=N82E16813130635
    or
    ASRock X79 Extreme6 LGA 2011 Intel X79 SATA 6Gb/s USB 3.0 ATX Intel Motherboard
    $240 w/ship
    http://www.newegg.com/Product/Product.aspx?Item=N82E16813157289
    or
    MSI Big Bang-XPower II LGA 2011 Intel X79 SATA 6Gb/s USB 3.0 XL ATX Intel Motherboard with UEFI BIOS
    $380
    http://www.newegg.com/Product/Product.aspx?Item=N82E16813130626
    I would really appreciate any feedback on mobos in regards to maximizing cs6...7...8 performance, system logiveity, and performance. Is it worth it to go for a higer end mobo? If so which one. I like the msi's based on eventually ug to 128 gb, but are they money well spent? Any probs w/these mobo's?
    Memory:
    G.SKILL Ripjaws X Series 32GB (4 x 8GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL10Q-32GBXL
    $130
    http://www.newegg.com/Product/Product.aspx?Item=N82E16820231490
    Hard Drive:
    SAMSUNG 830 Series MZ-7PC256B/WW 2.5" 256GB SATA III MLC Internal Solid State Drive (SSD)
    $160
    http://www.newegg.com/Product/Product.aspx?Item=N82E16820147164
    Video:
    GIGABYTE GV-N65TOC-1GI GeForce GTX 650 Ti 1GB 128-bit GDDR5 PCI Express 3.0 x16 HDCP Ready Video Card
    $160 w/ship
    http://www.newegg.com/Product/Product.aspx?Item=N82E16814125447
    or
    MSI N660 Ti PE 2GD5/OC GeForce GTX 660 Ti 2GB 192-bit GDDR5 PCI Express 3.0 x16 HDCP Ready SLI Support Video Card
    Item#: N82E16814127696
    $300
    http://www.newegg.com/Product/Product.aspx?Item=N82E16814127696
    I am still a little unsure of the real world differnces that I'll realize by doubling my video card expense, advice please?
    Optical Drive:
    LG Black 14X BD-R 2X BD-RE 16X DVD+R 5X DVD-RAM 12X BD-ROM 4MB Cache SATA BDXL Blu-Ray Burner with SW, 3D Play Back - BH14NS40
    $70
    http://www.newegg.com/Product/Product.aspx?Item=N82E16827136250
    Case:
    COOLER MASTER HAF 912 RC-912-KKN1 Black SECC/ ABS Plastic ATX Mid Tower Computer Case
    $60
    http://www.newegg.com/Product/Product.aspx?Item=N82E16811119233
    Power Supply:
    FX Core Edition PRO650W (P1-650S-NLB9) 650W ATX12V 2.2 & ESP12V 2.91 SLI Ready CrossFire Ready 80 PLUS BRONZE Certified Active PFC Power Supply
    $90
    http://www.newegg.com/Product/Product.aspx?Item=N82E16817207014
    Total     $1190
    or    $1760
    I have picked the MSI motherboard due to its support for 128gb ram, superior audio and other high end features. The AS Rock for its rep for solid value/performance. Opinions?
    Finally, I would like some advice on video cards. I prefer nVidia to ATI, but I'm not sure which chip to go for. The six fifties are cheaper, but the 660 ti provides more CUDA cores.

    Alex,
    I sure wish you would quick picking fights with lots of knowledgeable people just trying to help people build good PCs for running Adobe Premiere. (I am stating that based on not just this thread, but rather the strong challenges you seem to bring to about half of the threads that you've chosen to participate in).
    I was the original poster to suggest that Neal select a larger case. Next Harm agreed and cited 6 points which I would agree with regarding why a larger box is better for a video editing rig.
    What are the typical goals for someone wanting a video editing PC? I would expect that most users want:
    - robust, runs and never fails
    - has incredible power; face it, video editing with AVCHD is one of the most taxing applications a PC can face today
    - quiet; who wants to be doing creative work with any server room like wind noise
    Now let me be specific where you are simply WRONG WRONG WRONG:
    You stated: "Back pressure increases in larger spaces due to natural impedance of airflow (much like with electricity traveling over distance)"
    Fact: Exactly the opposite; Back pressure decreases in larger spaces due to more room for the air to flow (much like thicker copper passes electricity with less resistance than a thin wire)
    Your stated: "Open non-compartmentalized spaces are a recipe for hot spots - areas of turbulence with higher temperatures." and then cited a server room article talking about cooling air taking the path of least resistance -- going under the floor in a server room, instead of through rack mounted servers.
    Fact: Lots of open space for large, slow moving fans to keep a video editing box cool is a great way to go
    You stated: "Full towers - in themselves - are worse for cooling"
    Fact: That is one crazy indefensible statement!
    I seriously doubt that you fully comprehend the differences and importance of thermal conductivity, heat capacity, conduction, convection, and radiation for you to make the statements that you have so far and these are the staples for discussing how heat transfer takes place.
    Note to other readers... There are lots of ways to cool components including cpus, hard drives, gpus and memory. I suspect that the noise levels brought by servers and some gamers would be totally offensive to the ambient noise level that you want in the room with you for video editing. Therefore we are left with just a few quiet alternatives: 1) lots of volume at low velocity (large cases, large fans, slow rpm), 2) liquid cooling, and 3) Cases with doors or baffles to keep the sound from a noisier solution from getting back to your ears.
    Regards,
    Jim

  • AI crashes when I try to open a file or make a new one. Any advice please?

    I'm using a laptop and windows.  AI starts up ok but I can't actually create anything before it shuts itself down.  Any advice please?

    Hi Tm,
    Can you please check if there are any printers installed/connected on your system ? If yes can you please un-install/disconnect them and verify again ?
    Thanks & Regards,
    Raghuveer

  • Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    Is MS exchange the only way to keep mail synced across all devices? Can Mac mail do this without exchange? I have iPhone,iPad and new MacBook Pro, and looking for advice please.

    As Bob says, any iMap service can do this. GMail can, iCLoud mail can too.
    Both of these can be used with Mail on any device.

  • TS3391 I movie 09 on my Macbook Pro isn't recognizing the presence of my Sony handycam dvd201E - nor does it offer options - any advice please?  dave R

    I movie 09 on my Macbook Pro isn't recognizing the presence of my Sony handycam dvd201E - nor does it offer options - any advice please?  dave R

    I have a MacBook Pro 15 inch early 2011.
    The new features available in OS X Yosemite like Continuity, Handoff,etc are not supported in this model.
    I did upgrade RAM to avoid any possible slowdown.
    I found replacing the HD with SSD is  too expensive for  a 4 years old model.
    Replacing the CPU/GPU is not for amateurs.
    If you think that rebuilding a Mac part by part is a viable option, please go ahead and rebuild it.
    Best.

  • Load balancing across 4 web servers in same datacentre - advice please

    Hi All
    Im looking for some advice please
    The apps team have asked me about load balancing across some servers but im not that well up on it for applications
    Basically we have 4 apache web servers with about 2000 clients connecting to them, they would like to load balance connections to all these servers, they all need the same DNS name etc.
    what load balancing methods would I need for this, I believe they run on Linux
    Would I need some sort of device, or can the servers run some software that can do this, how would it work? and how would load balancing be achieved here?
    cheers

    Carl,
    What you have mentioned sounds very straightforward then everything should go well.
    The ACE is a load balancer which takes a load balancing decisions based on different matching methods like matching virtual address, url, source address, etc then once the load balance decision has been taken then the ACE will load balance the traffic based on the load balance method which you have configured (if you do not configure anything then it will use the default which is "round robin"), then it will send the traffic to the servers which it has available and finally the client should get the content.
    If you want to get some details about the load balancing methods here you have them:
    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/ace_appliances/vA3_1_0/configuration/slb/guide/overview.html#wp1000976
    For ACE deployments the most common designs are the following.
    Bridge Mode
    One Arm Mode
    Routed Mode
    Here you have a link for Bridge Mode and a sample for that:
    http://docwiki.cisco.com/wiki/Basic_Load_Balancing_Using_Bridged_Mode_on_the_Cisco_Application_Control_Engine_Configuration_Example
    Here you have a link for One Arm Mode and a sample for that:
    http://docwiki.cisco.com/wiki/Basic_Load_Balancing_Using_One_Arm_Mode_with_Source_NAT_on_the_Cisco_Application_Control_Engine_Configuration_Example
    Here you have a link for Routed Mode and a sample for that:
    http://docwiki.cisco.com/wiki/Basic_Load_Balancing_Using_Routed_Mode_on_the_Cisco_Application_Control_Engine_Configuration_Example
    Then as you could see in all those links you may end up having a configuration like this:
    interface vlan 40
      description "Default gateway of real servers"
      ip address 192.168.1.1 255.255.255.0
      service-policy input remote-access
      no shutdown
    ip route 0.0.0.0 0.0.0.0 172.16.1.1
    class-map match-all slb-vip
      2 match virtual-address 172.16.1.100 any
    policy-map multi-match client-vips
      class slb-vip
        loadbalance vip inservice
        loadbalance policy slb
    policy-map type loadbalance http first-match slb
      class class-default
        serverfarm web
    serverfarm host web
      rserver lnx1
        inservice
      rserver lnx2
        inservice
      rserver lnx3
        inservice
    rserver host lnx1
      ip address 192.168.1.11
      inservice
    rserver host lnx2
      ip address 192.168.1.12
      inservice
    rserver host lnx3
      ip address 192.168.1.13
      inservice
    Please mark it if it answered you question then other users can use it as reference in the future.
    Hope this helps!
    Jorge

  • My Z2 tablet has yellow lines appearing on screen edges. Advice please?

    My tablet developed a yellow line down the left hand side of the screen fairly early on. This was shortly followed by another line along the bottom, and now one on the right. Advice please? 

    Definitely a hardware fault, you should have no problem getting the tablet replaced, or repaired otherwise.

  • I have ongoing problems with "application not responding" in various programmes, ie Word, Excel, Illustrator, Photoshop, iPhoto etc. I recently subscribed to CC but the problem still persists. Any advice please?

    I have ongoing problems with "application not responding" in various programmes, ie Word, Excel, Illustrator, Photoshop, iPhoto etc. I recently subscribed to CC but the problem still persists. Any advice please? This applies to my iMac and my macbook air! I'm using OSX Version 10.9.3

    Hi Shauneenb,
    Welcome to the Apple Support Communities!
    If you are having issues with multiple applications becoming unresponsive I would suggest the steps in the following article, including starting in safe mode.
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    I hope this helps,   
    -Joe

  • I have just added more storage to icloud but now want to cancel it and get a refund, any advice please?

    I have just added more storage to icloud but now want to cancel it and get a refund, any advice please?

    Try the suggestion by Plusco here >  https://discussions.apple.com/thread/3404394?start=0&tstart=0

  • Macbook Pro OSX 10.8 and Epson WF 7525 will no longer print. It did until quite recently . Now I get Filter failed and RastertoescpII when i try to print ( test sheets ok) . Have tried to to uninstall and reinstall but nothing. Any advice, please.

    Question ?
    Macbook Pro OSX 10.8 and Epson WF 7525 will no longer print.
    It did until quite recently . However now I get filter failed and RastertoescpII and pages of items when i try to print .
    Print head test sheets/head cleaning etc ok  .
    Have tried to to uninstall and reinstall but nothing.
    Any advice, please?.
    ps
    The printer deos not show up on Epsons site but i think I have the software from Apple.
    Not an ideal situation.

    Try a reset >  OS X Mountain Lion: Reset the printing system

  • When trying to set up an email account I keep receiving ssl errror message. Any advice please.

    When trying to set up an email account I keep receiving ssl errror message. Any advice please.

    Error is: Cannot connect using SSL. Do you want to try setting up the account without SSL?
    Answer: Yes
    Then "Verifying" appears at top of screen but nothing happens.
    Tiscali/Talk Talk is the provider.

  • While downloading the free trial for Final Cut Pro X my internet has dropped out many times. It does however seem to continue ok each time it reconnects. Will this affect the software when it finishes? Is this a problem? Any advice please?

    While downloading the free trial for Final Cut Pro X my internet has dropped out many times. It does however seem to continue ok each time it reconnects. Will this affect the software when it finishes? Is this a problem? Any advice please?

    This has happened to me with a few downloads without any upsets.
    You should be OK.
    As I recall the download is around 1.2 gig so it takes a bit of time and effort to get it to your system.
    Al

  • I have photoshop 5.0 limited edition and can't load it onto my pc with window 7. advice please? than

    i have photoshop 5.0 limited edition and can't load it onto my pc with window 7. advice please? thanks

    It is not compatible with Windows 7.  Advice could include telling you to purchase the latest version.  The other option would be to buy an old computer that is capable of running it.

  • TS2972 I have ATV2 and the correct version of ITunes yet when watching a movie from ITunes, ATV2 will drop it mid way through and then will claim home sharing is not activated in ITunes. Can anyone offer advice please?

    I have ATV2 and the correct version of ITunes yet when watching a movie from ITunes, ATV2 will drop it mid way through and then will claim home sharing is not activated in ITunes. Can anyone offer advice please?

    yepp, I have done numerous tests today, skipped router and hard wired betwenn PC and appletv3. same problem.
    same network, but from my laptop, works like a charm.. so its not reproducable on all machines.
    this seems to be a itunes/bonjour problem, not ATV3 problem.

  • Importing into Flash a Fireworks image - advice please!

    Importing into Flash using a Fireworks image - advice please!
    New'ish to Flash so hope I'm in the right forum ;-)
    I have made and image using gradients in Fireworks and have been using FW for ages (please see example below).
    I am importing into Flash CS4 this image and want to use it with a Flash component however the image quality is really bad in Flash and I cant figure out why. I have increased the image to 300dpi in Fireworks to see if that helps and it doesn't.
    I'm hoping this is a simple thing I am missing due to not knowing Flash as well as I do Fireworks.
    Really grateful for any advise. P.

    Hi there,
    No not trying to adjust size of the image in Flash, do that all before hand.
    In Fireworks I can adjust resolution but don't seem to be able to in Flash, is this def the case?

Maybe you are looking for

  • Need a Firehand Lightning emulator for the Mac

    My daughter's wedding pictures were put together by the photographer with a program called Firehand Lightning. Is there an emulator for the Mac for this software? The photographer has given permission for me to use an emulator to open these pictures.

  • If i rent a movie do i need wifi to play it on ipod

    do i need wifi to play a rented movie on an ipod

  • Silent Install for Adobe Presenter 10

    I am getting an error (A valid installer cold not be found) when trying to create a package using AAMEE. I have used this in the past to package Presenter. I have targeted the path to setup.exe and set-up.exe.

  • AS/400 and Oracle integrated

    Hi, I have to integrate an AS/400 Server with DB2 Database with Oracle. I have read something about Oracle Access Management for AS/400 here: http://www.oracle.com/technology/products/gateways/am4as400.htm. But I can not find where to download it. Wh

  • Disable row edit

    Hi All, I found this: http://blog.classsoftware.com/index.cfm/2007/6/11/Flex-Datagrid-Edit-Cell-on-Row-Click How can I do the other way around? I have a column that is enable for edit but base in some condition I want to disable the edit for entire r