If more than 3 /n then replace with /br /br /br

Hi all,
how can I do the following:
if given string has more than three consecutive occurrences of /n
replace it with </br></br></br>
Thanks

Just tried it again and it is not replacing it.
I used this code
description = description.replaceAll("\r\n|\n","<br/>");and it works (replaces new line cars with <br>s)
to replace each occurence of new line character with <br> but then realized that I need to replace new line chars if there are more than three in a row.
When I use
str = str.replaceAll("\n{4,}", "<br/><br/><br/>");it wold not replace it.
I guess the erro is here:
("\n{4,}",

Similar Messages

  • Can I use more than one iTunes account with my apple TV?

    Can I use more than one iTunes account with my apple TV?

    That depends what you mean. If you mean can you purchase from more than one iTunes account on the Apple TV, then the answer is no. If you mean can you stream from more than one iTunes library, which use different accounts, then the answer is yes, so long as they both use the same ID and password for homesharing.

  • Hard drive says I have more than 300 GB available with a 500 gb capacity. Yet I get "Low Disk Space" error messages when I do anything.

    Hard drive says I have more than 300 GB available with a 500 gb capacity. Yet I get "Low Disk Space" error messages when I do anything.
    Attempted solutions:
    -I created a new User Account and I can download large files with no issues.
    -I ran "Repair Disk Permissions" but still get warnings.
    Google Drive Warning:
    Spotify Warning:        
    But on my other user account I can use spotify and download large files, etc.

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Can more than 1 iphone sync with itunes?

    can more than 1 iphone sync with itunes?

    mbraase wrote:
    This isn't a problem, but a question.
    1. Can you sync your iphone with remote to more than one itunes library (such as itunes on 2 different computers)?
    Yes you can sync with more than one iTunes Library. I just did it today with the library on my Mac and PC
    if so then...
    2. Does the itunes have to be maximized for the remote function to work, or can it be minimized on the task bar at the bottom?
    On my mac I can play the songs with iTunes minimized.
    The reason why, is I want to sync my iphone with my mother's computer at her house, and put some sound effects on her library. Then I want to turn her itunes on and minimize it and wait until she starts working on her pc and then I can play some practical jokes on her making her computer make weird noises (sound effects on itunes).
    Any answers would be appreciated by me (but not my mother).
    Thanks, and happy pranking to you all

  • Is it possible to monitor more than one target/Host with one agent in OEM 12c?

    Hi,
    Is it possible to monitor more than one target/Host with one agent in OEM 12c? Please assist me on this

    Since by definition a single EM agent must reside on a single database host, then, no, you can't monitor multiple hosts.
    Unless you mean that you want to monitor multiple virtual hosts from a single physical host ... but in that case, you'd still need one host per database host.
    That's just the way EM works. Always has, probably always will.

  • Iphone does not sync more than 3 mobile numbers with outlook

    as title says: iphone does not sync more than 3 mobile numbers with outlook.
    when i have a contact in iphone and i add more mobile numbers than just one, they do not pass through to outlook 2007. i realize this is because there is no room in outlook for more than 2 (if i remember correct) mobile numbers,but is there a workaround?

    I've got the same problem but with a "4 number" limit. Many of my outlook contacts have more than 4 numbers associated with them but the iPhone contacts app only shows/syncs 4 numbers. Any way to increase this limit on the iphone?

  • Has anyone ever been quoted more than $500 to replace a failed logic board?

    Has anyone ever been quoted more than $500 to replace a failed logic board? A Genius buddy of mine swears that it'll never be over $500 but I' convinced he's high out of his mind.

    I doubt it. They don't even take the same kind of RAM.
    What makes you think a replacement "will most likely go bad in the future"? Some have had to go back more than once; many haven't. (And many have not gone in at all.) There are many iBook users out there, happily iBooking away without any knowledge of the iBook Logic Board Repair Extension Program because they've never had a problem.
    Get it replaced, free, NOW, and worry about the future when it gets here.
    http://www.apple.com/support/ibook/faq/
    P.S. When you make an error in a post, there is a little edit-pencil icon next to the "Reply" icon in your post. The edit pencil stays there for about 15 minutes to allow you to edit your post. Just click on it, and it takes you back to your message box so you can edit it to your heart's content.

  • Calendars to List for more than 12 months? With advanced selection the Listing will go back farther than 12 months but will then disappear!

    How do you get Ical to List for more than 12 months on your Ipad?  I have used Advanced settings which accomplish this but the Listing disappear overnight!

    Hi Kaorin
    I was charged £75 last month for broadband, calls, and TV - we have unlimited so cannot be charged any extra, and have never used the phone.
    It's shocking - we too were 'enticed' by a discount, which really didn't mean anything...
    Hope you get the issue's sorted. Feel free to post on my forum post in my signature.
    Please see my story:
    http://community.bt.com/t5/Bills-Call-Packages/Taken-to-the-Ombudsman-Service-My-story-with-BT/td-p/211003

  • In Yosemite, I can;t operate for more than a few minutes with Keychain or Safari asking for my login password.  How can I turn this off, and still be safe?

    Using Yosemite, I an't seem to work for more than a few minutes without being asked for my login password.  Keychain wants it, Safari wants it, iCloud wants it..the list goes on.  Then in 10 minutes or so, they all want it again.  Passwords are being stored by Safari as usual, but new tabs or pages bring up the request.  How can I turn this off and still have protection?

    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

  • Using more than one external drive with apple tv and itunes

    I've searched the forums and haven't found a clear answer for this. Is it possible to use two seperate drives for the itunes library? I've already filled up my external firewire drive and would like to get another one.
    I've read in several places that people are doing this, but haven't found clear instructions on how its done.
    Much thanks!
    Brown.Recluse

    I don't think you can have more then one folder designated as you itunes library folder, so you can not have more then one drive for your library folder. However you can use more than one drive for you content. I have 6 drives that I use right now. I store the movies and tv shows on those drives. I drag a movie into then library tab in itunes and it just links itunes to the path of the movie. To do this however you have to unclick a option in itunes. It is the menu that you tell the path to you library, you have to unclick “copy to your library” not sure if this is the exact name of this. If you don't do this it will try to copy the movie you dragged in instead of linking it. I actually have nothing in my Itunes library folder. You can also do this with purchased content as well. Just move the purchase content to a drive of your choice from the itunes library. Delete it from itunes. Then drag it into itunes from the new drive. I hope this all makes sense, let me know if you have any other questions.

  • Can you have more than one iTunes account with home sharing, Can you have more than one iTunes account with home sharing

    Can you have more than one itunes account at one time with apple tv

    My understanding is that the home sharing is based off of being on the same Wifi.  So if someone brings their laptop to your house and connects to your Wifi and they have home sharing on they can connect so you can see his/her iTunes library on your iTunes. 
    I haven't tried this though.  We have two laptops at home, both using my iTunes account and I can see each other's iTunes library, which I'm guessing is what you're probably doing now.  I'd be interested to know if my thought above is true. 

  • Sharing more than one iTunes library with one iPod

    Hi.
    I've tho Mac connected together. I've two different libraries, one for ech one. Well, I'd like to charge my iPod with songs from the two libraries. How can I proceed? I've tried to share the libraries, I can listen to the tracks but no way to transfer to the iPod.
    Thanks in advence for your help.
    Regards

    If you want to connect and use an iPod on more than one library or computer you need to change the update preference in the iPod Summary tab to "Manually manage music and videos" and click Apply. In this mode you can directly access the content of the iPod and play it through iTunes and you can drag and drop whatever you want to the iPod from either library:
    Using iPod with Multiple computers
    Managing content manually on iPod
    Syncing Music to iPod
    Something else to be aware of when using an iPod in manual mode is that the "Do Not Disconnect" message will remain on the display until you physically eject the device: Safely Disconnect IPod

  • Method called more than once - and dies with EXC_BAD_ACCESS error

    Hi,
    In my app, I have 4 views with their respective viewControllers. In the appDelegate.m, I provide methods that allows to switch to any of these views. Following is code for switching to the editView:
    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    The view is not switched - and moreover, this method is called more than once; and the app dies with EXCBADACCESS!
    2009-08-23 14:54:40.648 iNotate[2128:20b] Album (before): x= 0 y=20 width=320 height=460
    2009-08-23 14:54:40.653 iNotate[2128:20b] Album (after): x= 0 y= 0 width=320 height=480
    warning: Couldn't find minimal bounds for "_sigtramp" - backtraces may be unreliable
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x546a30, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    Current language: auto; currently objective-c
    (gdb) continue
    2009-08-23 14:54:55.885 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    (gdb) bt
    #0 -[iNotateAppDelegate flipToEditView] (self=0x523690, _cmd=0x9563) at /Users/sam/MY_FILES/iPhone Apps/app/Classes/iNotateAppDelegate.m:116
    #1 0x00008661 in -[FirstView editAction] (self=0x5457b0, _cmd=0xac94) at /Users/sam/MY_FILES/iPhone Apps/app/FirstView.m:25
    #2 0x30a4eee6 in -[UIApplication sendAction:to:from:forEvent:] ()
    #3 0x30ab0d36 in -[UIControl sendAction:to:forEvent:] ()
    #4 0x30ab11fe in -[UIControl(Internal) _sendActionsForEvents:withEvent:] ()
    #5 0x30ab0544 in -[UIControl touchesEnded:withEvent:] ()
    #6 0x30a67917 in -[UIWindow sendEvent:] ()
    #7 0x30a56fff in -[UIApplication sendEvent:] ()
    #8 0x30a561e0 in _UIApplicationHandleEvent ()
    #9 0x31565dea in SendEvent ()
    #10 0x3156840c in PurpleEventTimerCallBack ()
    #11 0x94a713c5 in CFRunLoopRunSpecific ()
    #12 0x94a71aa8 in CFRunLoopRunInMode ()
    #13 0x31566600 in GSEventRunModal ()
    #14 0x315666c5 in GSEventRun ()
    #15 0x30a4eca0 in -[UIApplication _run] ()
    #16 0x30a5a09c in UIApplicationMain ()
    #17 0x000027e8 in main (argc=1, argv=0xbffff068) at /Users/sam/MY_FILES/iPhone Apps/app/main.m:14
    (gdb) continue
    2009-08-23 14:55:22.493 iNotate[2128:20b] >>>>>>>>>>>>>>>>>> populateTheList
    Program received signal: “EXCBADACCESS”.
    (gdb) continue
    What's happening here?
    Sam!

    -(void) flipToEditView {
    [self populateTheList]; // populate an array
    EditViewController *anEditVC = [[EditViewController alloc] initWithNibName:@"EditView" bundle:nil];
    [self setEditVC:anEditVC];
    [viewController.view removeFromSuperview];
    [self.window addSubview:[editVC view]];
    [anEditVC release]; }
    }<---- is this } matched elsewhere?

  • How to map more than one xml element with some Paragraph in a Text Frame

    Hi friends,
    I am new in InDesign Java Scripting and I have to place or map, more than one xml elements of different parents, into one textbox. Is it possible through JavaScript? Can anyone help me in this because I have no idea how it should work and it urgently required.
    Thanks in Advance

    I had answered to you already in your first post: the short answer is that it's not possible on the same text box unless you assign a common ancestor of these two "parents" item. That's not a question of scripting, it's the way Indesign handle the XML with the layout. Import a xml in Indesign and drop tags to page item. What you can do manually is quite representative of what can be done through scripting.
    If you assign this anscestor to the text frame, you have to expect that all text child items will be displayed in the text frame (including the text of all the child of the two "parents" and all the other parents/childs that could be under the common ancestor). Having a XML that is designed for Indesign usage is pretty much inevitable if you are doing anything "serious".

  • Is PDF output of more than one reports region with Apache FOP possible?

    Hi,
    I'm evaluating the possibilities of PDF output by means of the Apache FOP. I've installed the standalone OC4J, deployed the fop.war and configured my APEX 3.2 installation according to the various guides I found. Now I can generate PDF output of a reports region.
    I will have APEX pages containing more than one reports region. Is it possible to generate a PDF document of the whole page, not just of the individual reports regions? If so, then how?
    Thanks,
    Robert
    On a sidenote: Does anyone know where I can find the licensing model and fees for the standalone OC4J? They don't seem to be included in the [price list|http://www.oracle.com/corporate/pricing/technology-price-list.pdf].

    Hello Sue,
    >> The first report on Page 3 successfully opens Page 14 as a popup.
    Please show us the code you are using for the popup link (it’s not the template that causes it to open as a popup. The template only styles the page once it rendered).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

Maybe you are looking for

  • Can't Import Some Songs or More than One - HELP

    I can't get an answer to this question: why when trying to import multiple songs will the import fail. I have to go back and do 1 or 2 at a time -- huge PITA. Also, Musicmatch would allow you to "scan" a folder and it would faithfully scoop up every

  • Slow & Incomplete Syncs

    Ipod Touch 5g : 64G  on IOS 8.1.1 Plug it into PC running Windows 7 Home Premium and Itunes 12.0.1.26 Syncing is SO slow.  Ipod has 27G open on it and it still takes FOREVER to sync.  I always get several error messages saying the ipod can't be read

  • New Acrobat X / LiveCycle User - Cannot Freely add/move Text Fields - Why?

    I have (what seems to me) an elementary question that I cannot seem to figure out. I have a form that I created in MS Word with placeholders for fields such as pick-lists, text fields, or check boxes.  Now that, to me, is not uuber fancy, but I canno

  • With 'Revenue' Fact Column how can i calculate 'Previous 3 Months Revevue'

    Hi All , i have a Column Called Revenue from Fact Table. i need to calculate Previous 3 Months Revevue How can i achive this ? please help me Thanks in advance

  • Leopard 10.5.1 may cause iPhoto to self-start and caused 5 re-starts since

    Well - I installed Leopard update (10.5.1) this morning and since then I have had to re-start my computer 5 times - or perhaps 6 - I'm losing count. On the first three occasions, iPhoto started up on its own and was not able to load any photos, so I