In the money, but none the richer [CS3,JS]

I've extracted a story from ID, put all the pounds sterling into an array and am stepping through it, converting to the euro values.
So on each iteration I end up with two variables, poundsToChange (£500,000) and euroSum (€556421 ... I know, far too much detail, but I'll get round to simplification when I've got the basics working)
For simplicity's sake, I'm using JS' replace command, but nothing is happening...
var changeToEuros = textToSearch.replace(/poundsToChange/g, euroSum);
Is this because the variables' names are being searched for in stead of their contents? If so, is there a fix for this?
While I'm here, in order to do the conversion I've had to remove the commas from the thousands, hundreds of thousand etc. Does anyone have a handy function to which I could entrust my millions and get my commas back?
With all these riches about, all I can offer is my gratitude...

HarboSenior wrote:
var changeToEuros = textToSearch.replace(/poundsToChange/g, euroSum);
Is this because the variables' names are being searched for in stead of their contents? If so, is there a fix for this?
var regEx = RegExp(poundsToChange,"g");
var changeToEuros = textToSearch.replace(regEx, euroSum);

Similar Messages

  • Dashboard has stopped working. The application will open, but none of the widgets will function. I've deleted widgets

    Dashboard has stopped working. The App will open, but none of the widgets will function. I've deleted widgets & added new ones, but they also will not work.

    I get the "License has stopped working" mesages too.
    We have a MacbookPro at home. There are two user-acounts on this mac, one for my wife and one for myself. This way we keep our personal stuff (e-mail, files, settings, dropbox, desktop clutter etc) separated. "Fast user switching" is enabled to easily switch to your personal account.
    Now when I open Photoshop I might get the dreaded "License has stopped working" message. This will happen if Photoshop is left open in her account. So I'll have to log into her account, close Photoshop, go back into my own acount and open Photoshop again.
    I should not get this message since Photoshop is not part of a particular user account, it is installed in the "Applications" folder which is accesible to all users.
    What makes it even more annoying is that I get the "License has stopped working" message on trying to open Photoshop even when Photoshop is closed in in the other acount, but Illustrator is opened.
    This makes no sense since we bought Photoshop and Illustrator CS3 as separate programs, not as a part of the Creative Suite.
    I did not report this to Adobe yet but it wil do that now.

  • I haven't been able to watch any of these three movies because of a pop up saying ''Unknown error (-42110)''. I have tried the possible solution but none of them have worked,they will expire soon.pls help

    I have rented 3 movies added up to a whopping $15.I have tried the possible solution but none of them have worked,they will expire soon.pls help

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Setting up a new TC.  Everything went fine.  I was able to connect a macbook air, 2 ipads, an Iphone 6, and even a windows 7 PC.  All devices showed a complete and functioning internet connection, but none of the devices could access the internet.

    I am trying to set up internet connection to my home using a 3gig Airport time capsule as a router.  I unplugged the cable from the existing router, and plugged it into the ethernet port of the TC.  The TC fired up found tttttttthe internet connection, and glowed green.  I set up the password, and all, and was then able to connect a Windows 7 PC, 2 ipads, and iphone 6, and a macbbook air, all running the most current os.  All devices connect with the internet via the Airport device.  they all say that there is a fully functioning internet connection, but none of them can actually connect to the internet.  When I run a speed test via OKLA I am told that the test failed to innatiate.When I try to do a search I get an error message that the page cannot open because safari cannot make a secure connection to the server.
    Any suggestions?

    Inside the house I have what looks like a phone cable that is plugged into a power supply, and into a router.
    What is this router?? Is it the TC or a router supplied by the ISP?
    It will depend on how the system works.. but the instructions from skybeam are fairly simple.. you just setup a router with dhcp set on the WAN port for connection.
    On the airport utility open your TC by clicking it then clicking edit.
    Make sure the WAN is set correctly and the ISP ethernet cable is plugged into it.
    And make sure Network is set to DHCP and NAT.
    Please give me the screenshots of the same things from your setup.

  • I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2  icloud just

    I had to change my Apple ID and password in itunes. Now my icloud doesn't work and I can't update my apps on my iPhone. I have looked at suggestions on the community pages and apple suggestions but none of them are relevant to iOS 8.1.2
    icloud just keeps bringing up my old email address & asking for my old password which doesn't exist anymore and when I try to sign out of icloud it wants my old password, when I tried to change my primary email back to the old one it wants me to verify it through an email address that doesn't exist. Please can you help me sort out this nightmare.

    Hi skippy2012trev,
    Welcome to the Apple Support Communities!
    I understand that you updated your Apple Id and password but now you are being prompted for the old information in iCloud. You are on the right track by changing the Apple ID back to the previous email address temporarily so that you can sign out. You should not need to verify the email address. After you edit the Apple ID back to the old email address and then sign out of iCloud on your iPhone, edit the Apple ID back to the address you would currently like to use. There is no need to change the password again, only the email address, unless you prefer to update the password again.
    If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
    Change your Apple ID temporarily
    If signing out and back in to iMessage or FaceTime didn't help, try these steps:
    Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
    Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
    Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
    Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
    Enter the password for your previous Apple ID.
    Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
    Return to Settings > iCloud and sign in with your new Apple ID.
    Cheers,
    Joe

  • I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!

    I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!
    It started after the major update to iOS 7.
    I can't believe that this is so hard to do. It's just not letting me. I can add a bookmark to the home screen just fine, just not in a bookmarks folder anywhere I try.
    I've used Apple products since 2001 and have always loved how intuitive they are. But the Safari browser since iOS 7 has been the worst I've experienced. At least right in the beginning after that update.
    I'd really appreciate any help that doesn't just tell me how it's suppose to work...I know that.
    My iPad 4 is not affected with the problem and works as it should.

    To delete, tap "Edit" (tap to enlarge image)

  • When I click on the - fire fox disappears from the task bar; it is still open but gone from the task bar, if I click on any icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Question
    When I click on the - to minimize fire fox, it does not close the window but the firefox icon disappears from the task bar; it is still open but gone from the task bar, if I click on any other icon it opens a new Firefox window, I end up with several windows open but none on the task bar.

    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Do a malware check with some malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • HT1476 My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones. I'm stumped :/

    My iPhone 4S will charge on a laptop but not from a wall plug. I have tried different boxes and different USB cords from the wall but none work. These boxes and USB cords work for other family members with iPhones and a USB cord that works from the laptop won't work from 3 or 4 different wall boxes that work for others. I'm stumped :/

    Update: It seems as though the phone will charge if I plug it in and then turn it off.  It will not charge while the phone is on.  Also iTunes will not recognize it, so I can't sync or anything.  I read somewhere that it could be a fuse somewhere?? Or maybe the dock connector. Where is the best place to get this repaired?

  • How do I set up LiveRig or TouchOSC with Mainstage 2.2.2? Both apps send signals but none are received by Mainstage and both the ipad 3 (6.1) and macbook pro (10.7.5) see each other via WIFI?

    As I said before both app's send signals but none are received by Mainstage and both the ipad 3 (6.1) and macbook pro (10.7.5) see each other via WIFI on the network set up, which I think I did right. I have tried MIDI Disigner and Mainstage shows MIDI activiti, what can I be doing wrong?
    Thanx in advance.

    I agree anti-relay can be using UBE feature. However, there is serious problem in reject the spam mail. My nms is using UBE feature to stop spam mail. According to the work flow of the UBE, the mail is received by nms completely and UBE is going to invesgate the mail address. Although UBE can stop the spam mail, the spam mail have a trouble in returning the mail to the sender. The reason is the sender address is usually not existed in the world. That will cause a lot of mail waiting in the mail queue.
    In my experience, do not use UBE for anti-relay.

  • Can we split accounts so each person can spend their own money, but still share the same librar

    right now we have one itunes library, one apple id and 2 devices. so when we put an itunes card on the account, it is a race for who can use up the $ first.  We are adding a 3rd device.   I want to split the accounts so each person can spend their own money, but i still want them to share the same library(the library is in a shared area on the computer)
    we have been thinking about just setting up a new apple id for the new device.  i am worried that when we sync, that it will wipe out all the existing stuff.
    Thanks for your help.

    You can create as many individual user accounts on a Mac as you like. Then, any one or more of those users can remotely log in from another Mac and use that Mac as their own, simultaneously. Each account will remain separate from all others.
    However, since each user needs to have a Mac to do that, I'm not sure how you could effectively double the number of users as you describe.

  • I got a new phone and phone number two weeks ago, I like to iMessage on my macbook pro but none of my new conversations show up, I went into the preferences to change the settings so only conversations from my new number show up, but there is no change.

    If anyone can please help me, I would like to continue using iMessage on my laptop, but none of my new conversations exist only the older ones. I went into the iMessage preferences to delete my old number off the iMessage account and added my new number and email but I still don't get any new messages. Can somebody please tell me what I am doing wrong or how to change it further?
    Please and thanks.

    If the modem is also a router, either use the modem in bridge and run pppoe client on the TC.. that is assuming ADSL or similar eg vdsl. If it is cable service.. and the modem is a router, then bridge the TC.. go to internet page and select connect by ethernet and below that set connection sharing to bridge.
    Please tell us more about the modem if the above gives you issues.

  • I have just installed Lightroom 5-7 on my new PC laptop but none of the photos I am working on are there, what do I do to get them from my old laptop also a PC

    Hi
    I just bought a new PC laptop and installed Lightroom 5.7 on the new one but none of the photos that are in Lightroom on my old PC computer are on the new one.
    I have several photos that I am working on in the old computer which is dying and not very reliable any more.
    How do I find the photos on my old computer and get them into Lightroom on my new computer?

    You would need the catalog and the images from the old computer if you want your work that you have done previously. You will have to copy the images and the catalog from your old computer to the new one. Don't you know where you imported images to?

  • My daughter accidentally restored her ipod4 to factory settings so I restored from the last iCloud backup. Her photos were all on camera roll so I believe should have been backed up, but none of them have been restored. Why?

    My daughter accidentally reset her ipod4 to factory settings so I restored from the last iCloud backup. All her photos were on camera roll so I believe they should have automatically been backed up, but none have been restored. Why?

    When she plugged in the ipod last night it backed up again so that now shows as the latest backup. No previous backups are listed so I do not seem to have the option to rerun the old one. She had many pictures on the camera roll taken from well before July. I can only presume that the backup in July must have been incomplete - but then I didn't think it was supposed to list as an option to restore from. Luckily many of the photos had been backed up on the pc but I am very frustrated as to why the icloud backup didn't protect them. Thank you for your advice though, I appreciate it.

  • I just installed Icloud on my Iphone and PC (all versions as required) I checked mail, caledar and task. Outlook shows an Icloud calendar but none of the events that are on my phone calendar. Email is not syncing from phone to pc either. What do i do?

    I just installed Icloud on my Iphone and PC (all versions of updates as required). I checked mail, calendar and tasks to be synced.The Outlook calendar shows an I cloud calendar but none of the events on my phone calendar. Email from the phonre and pc are not syncinh wither. The phone shows an Icloud inbox. What do I do to get items to sync?.

    deltajane wrote:
    My iphone4 and my ipad mini were synced to my computer, but now I don't seem to be able to see all of my content nor my photo stream.  I did see everything there several weeks ago, so I know it worked. How do I access those from my computer.  I can't find how to sign on. 
    This is the article that will assist with this part of your post:
    http://support.apple.com/kb/ht4486
    deltajane wrote:
    I signed on to iCloud, but it only shows the icons for Mail, Contacts, Calendar, Notes, Reminders, Find Phone, Numbers, Pages and Keynotes. Where's everything else ?
    What you've outlined in this part of the post is all that icloud stores for you outside of the backup. If you want to restore from the icloud backup you will then have for all practical purposes a carbon restoration back to your device if you restore from the icloud backup.
    deltajane wrote:
    I want to delete photos that are on my iphone, by doing so from the computer, not my phone.
    Syncing your device with itunes will then enable you to remove whatever photos you wish to remove from your device deleting them with the computer and not the iphone.

  • While updating my apps, I lost my wi-fi connection.  I have since tried to update the apps several times...but none of them are updating.  Each time I try to update the apps, I enter my password, but then nothing happens.  Thank you - Chris

    While updating my apps, I lost my wi-fi connection.  I have since tried to update the apps several times...but none of them are updating.  Each time I try to update the apps, I enter my password, but then nothing happens.  Thank you - Chris

    Hold the power button and the home button down until the screen goes black and the apple logo appears. This will do a reset and you should be able to update your apps then.

Maybe you are looking for

  • Can I use iChat to chat with someone using gmail's chat utility?

    ...and how? Thanks.

  • Value not match in KEAT report  with FI

    Hi All, I am going through KEAT report, here is saw that the value of one GL Account in FI  value Column does not match with the value  of the same GL in FBL3N. Is there is any particular reason as other GL account value matches with the value in FBL

  • Graphic placeholder for submit to iTunes

    Okay - I have spent a couple of good hours trying to track down the answer to this question without success. Lots of people asking, but no response. So . . . . in iWeb, in File - Submit Podcast to iTunes - and you are supposed to be able to drag an i

  • E3000 Router without Cisco Connect

    I just setup my new E3000 which in general is working great.  Being a Cisco geek at work, my first step was to connect via http and toss the Cisco Connect CD to the side.  After getting the basics setup to mimic my old Cisco 871W, I started to look i

  • Need help to log-in Apple email

    Hi to all, i'm a beginner here and do need your kind help. I updated my iphone4 with the new 4.2 OS and wanted to activate the "Find my iphone" via MobileMe. I need to do a verification and an email was sent to my Apple email account. Where do i find