Complicated question variables/RegEx

Hello ~

I have a form that allows users to submit a block of text, with all the variables that they use surrounded of ~, as ~ name ~ The entire block of text, including variables, be printed on the page. I have a RegEx function, which replaces all the ~ #, but I still can't get the variables appears as their values, rather than #firstName # on the page.

Here's my RegEx expression:

< cfset happy = reReplace(content,'[~]','##','ALL') / >

This makes me this when I exit the integer variable to the page:

< p > dear #firstName # #lastName #: < /p >

< p > Lorem ipsum dolor sit amet, adipiscing elit computer. Cras nec accumsan ante. Mauris placerat ullamcorper mollis lorem fringilla. Morbi urna ipsum, and tempus urna. Aliquam pellentesque sapien ut orci vitae enim, ullamcorper faucibus lacinia. < /p >

< p >, < br / > #clientName # < /p >

< p > < a href = "#webSite #" > click here < /a > to return to our Web site. < /p >

I played around with reReplace to add single quotes around not variable text and symbol, etc., do all the work, but I have not had much luck! Any suggestions would be really useful. Thank you!

KC

You can try something like that.





   
   
   

(Content) #HtmlEditFormat #.

Whatever method you use to project I recommend that you play the entry against a white list of the variables that your users have access.  You can avoid giving users access to the variables that may contain sensitive information, such as data source names.

Tags: ColdFusion

Similar Questions

  • Total number of Questions Variable

    I try to use the CpQuizInfoTotalQuestionsPerProject system variable in a Captivate 7 project, but the value is always 0, even though I have several questions.

    I tried to use the variable that it is, or give it first to a user variable and always shows 0.


    No doubt, I'm doing something wrong. Any help will be greatly appreciated.

    Sorry, will check when I restart CP, held to install the CC (I am a monster of Adobe).

    When did start you this fast action? And what are the parameters of the quiz? If you aware branch, quiz system variables are dynamic, they are populated according to the questions taken by the user. Is it perhaps the case?

  • You can add a file to a compressor setting?

    We use a custom audio setting of compressor for Final Cut, where the audio from a video is exported in MP3 format for a Podcast feed. Everything works fine, but we would like to add an audio intro to the podcast, and the best way to do that would be for setting compressor include audio intro and attach it at the beginning of the export of Final Cut. In this way, we could hit 'export' of Final Cut and immediately download this new MP3 on our podcast. I am trying to streamline our processes and save time.

    It's a complicated question, but nobody knows if it's possible? Thank you!

    Note: We cannot put audio podcast intro in editing Final Cut, we also export a video file at the same time, that does not have the audio intro.

    The compressor is not an editor, it doesn't work like that.  What you want to do is to create your intro in your timeline in FCPX.  Make a compound Clip, or stand alone audio clip.  Just drop it in the scenario first, actually.  But now, a "Preset" compressor understand adding several media to your conversion settings.

    What I would do, is to change your Timeline, and then do one of two things.  First of all, you can duplicate this project calendar (Cmd - D), call the a new XYZ - Audio.  Insert the audio clip at the beginning (Cmd - W) and export audio.  Or you can just insert the Intro in your timeline from the start.  Once finished, export audio only, then delete the intro at the beginning and video export.

    If this is a regular series, make a library for the series.  Create a new event for each episode.  Create an event for your support of stock, which would include your audio clip Intro.  It's how we make our reality, TV show, who has recurring intros, outtros, bumper, etc.

  • Portege R - 400 3 G modem freezes VMWare Player 3.0 in Windows 7

    Hi all

    I have a problem following needs your help.

    I have a Portege R-400 with 3 G build-in modem. It is installed Windows 7. All is well until I install the VMWare Player 3.0.

    Without modem 3G connection, each application still works fine. (I use WiFi most of the time.)

    When I'm not in measure use WiFi and connect with 3G, without starting VMWare Player, the system freezes within 5 to 20 minutes.

    The symptom is without any response to the keyboard and mouse, but can see HD light flashing.

    Then, I'll try Virtual PC from microsoft. He may have the same problem, too.

    It will be very appreciated if there is no solution for this problem.

    Thank you very much!
    Mike

    Dear Mike is a rather complicated question. I mean Toshiba muss well deliver books and work with the factory settings, everything should work fine.
    If you use some third-party software of the part and if something goes wrong, it can be really complicated.

    Who is responsible for support here?
    I hope that someone on this forum has exactly the same specifications, the setting, the operating system and additional software like you and can help you with this.

  • Airport Express is no longer connect to Airport Extreme

    OK, it's kinda a complicated question.  For starters, I will describe my current setup:

    Cable modem Motorola-> Airport Express #1-->(Ethernet over powerline)-> Airport Extreme-> multiple Airport Express for AirPlay

    Airport Extreme and Airport Express #1 are put in place to create wireless networks, with different names for 2.4 Ghz and 5 GHz frequencies.  I love this configuration because it allows me to play music simultaneously on the four different speakers hooked to my Airport Express units while offering good coverage in my apartment together.  It worked perfectly until two days ago when two of the Airport Express units lost their connection and are now flashing yellow.  I tried to restart the Airport Express and Airport Extreme, but nothing helped.  When I launch iStumbler, it looks like Airport Express #1 and Airport Extreme both create networks of right, but who is the Airport Extreme 802. 11A instead of 802.11n - don't know if it of a problem or not.  I suspect that the Airport Extreme is not working properly because when my wireless connection when you use my iPad near the Airport Extreme, that used to be solid as a rock, is now uneven intermittently.

    Any ideas on how I can solve this?  Thank you very much!

    It sounds like your extreme is the very old Gen1 or Gen2 model without dual band.

    Back to the factory and start over. It's the best way to solve problems... reboot is worth a trial, but in the end, you sometimes just have to redo the installation.

  • set up the new pc with a chart

    Well, I'm new and I have a complicated question for someone who has the time to fix my problem.

    I just bought a new computer hp from Wal-Mart without a monitor. I intend to use my HDTV as a monitor using HDMI to HDMI on a graphics card which I also bought. The question is what do I do and in what order to do all this work.

    I know that I must do the following:

    • I need to install the graphics card to use the HDMI output
    • I need to install drivers to use the graphics card (as far as I know
    • The initial pc set up when I start by putting

    Will be automatically recognized graphics card, or do I have to put in place a temporary means to see to configure settings using a cable vga etc.?

    In addition, is there something special, that I need to display on the screen or to get sound through HDMI?

    If someone would be willing to give me a solution step by step to this problem, I would be grateful.

    Here are links to my respective pc and graphics card:

    http://www.Walmart.com/IP/HP-BV530AA-ABA/15701586#specifications

    http://www.TigerDirect.com/applications/SearchTools/item-details.asp?EdpNo=5397646 & SKU = Z700-9508

    Hi and welcome to the forum...

    Map of tigerdirect link does not work, but don't worry, here is the solution to your problem...

    First set up your computer using the VGA port and install the video card software and driver on the PC.

    Then, install the video card on the computer. This link will guide you how to add card video on PC p6710f. The link is: Add a video card

    Thirdly, we must define PCIx16 as the main display adapter in the BIOS... And, to complete the steps below:

    Turn off the computer and wait five seconds.

    Turn on the computer.

    When the first screen appears, do one of the following:

    Immediately press the F10 key. Press the button once per second until what the BIOS configuration utility screen appears.

    Select the tab advanced using arrow keys left and right of the keyboard.

    Then select 'Primary Video' by using the up and down arrow and press ENTER.

    It opens a new window, ON the small new video select PCIx16 and click on enter.

    After that it shows PCIx16 beside the main video card in the list on the Advanced tab, press F10 to save settings and exit BIOS.

    Restart the computer and use the video card to connect the monitor.

    If you CAN'T find any option let me know...

    * AND FOR Sound you don't have to do something, it will be using HDMI, if not then need some adjustments to make the control panel.

    Click on the sin of congratulations on the left to say 'thank you '.

  • Re: Laptop model not found

    [This | http://forums.computers.toshiba-europe.com/forums/message.jspa?messageID=102277#102277] is what happened to me.

    So, I contacted the ASP in the Netherlands and the people he said that they could not fill my request because my Toshiba Satellite A100 model has not been done here. They suggested I contact the ASP in Indonesia.

    I contacted the ASP in Indonesia only to hear the same answer.

    I looked for the model on the official site, but I can't find the model.

    If I'm screwed? :(

    Oh, for the information, my laptop is Toshiba Satellite A100 with model PSAA8H 06500 M.

    Hello

    It's a pretty bad situation. ASP in Nederland is right. They can order materials of recovery for the own country only.
    Recovery media are product specific (different hardware configuration) and you may not use any recovery media for portable model A100. Thus, it is important to control the media in the country of purchase. The funny thing is that Googling autour, I cannot find any info on your model of laptop.

    I recommend you use the CD of Microsoft facilities for the installation of Windows XP Home edition. If the hardware configuration is known to you, I hope you will be able to find the drivers for your laptop model. Maybe you can use the drivers from http://pc.toshiba-asia.com/support/downloads/index.jsp

    Sorry, but buddy is a rather complicated question.

  • Is it not possible for me to duplicate my administrator account?

    My little brother uses my account, so I would really like that, if I could reproduce them so he could have his own. Is it possible if the account is the administrator?

    Hi EColl,

    It is a complicated question, but in general, it can be done.

    First of all, it is possible to create a new user account and move information from one account to the other.  You will use essentially the same procedure if the account has been corrupted (except you copy instead of move and would not remove the original account). Here is the procedure in Vista: http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profile.  If you have a different operating system, or perform a search on Bing for 'fix a user profile corrupted in ' or post back and I'll try to find it for you.

    If you want him to have administrator rights, you are finished.  If this is not the case, use your username to change his account to a standard account and then you are done (but if he is accustomed to using an administrator account, he can find a standard account quite a bit more restrictive - but it's up to you).

    But consider that, while both accounts have the same starting point for documents, images, programs, audio, desktop, settings, e-mail programs and configurations and accounts and other, as soon as you start to use them separately, they will become different.  He will not have access to your user accounts and any additions, changes or deletions you make will not intervene in his account (because is not the same account).  Well, if you two administrators, technically, you can access the data in each and other accounts and copy it to your own - but who then begins to defeat the purpose of having separate accounts.

    I hope this helps.

    Good luck!

  • Microsoft Tinker

    For some reason any Microsoft tinker has simply disappeared. I played earlier, it didn't for 2 or 3 weeks and then when I wanted to try again, he simply disappeared.

    * I looked in the directory C:/Program Files/Microsoft Games/Tinker and it's empty.

    * I tried to uninstall and reinstall that the windows update, it is still not there.

    * I uninstalled, deleted the folder, reinstalled the update of windows, still no game

    * I checked for the installer, as suggested on the web, in [winroot] / winxs, but he was not there either...

    Do a system restore is NOT an option at this point.

    Thanks for any help!

    OK, after the previous post, I'm tired of canned responses and I fixed it!

    It's a very complicated question, though; It is worth noting that my computer has two installed languages (en-US and en - US) and is running in the settings regional en - CA. I don't know how that would affect the dissapearance of Tinker, but as I'll explaing thereafter, it might affect things. Also note that I have disabled UAC (because the UAC control "resets" screen (change of default resolution in case the resolution is different?) and in this case my Bluetooth Microsoft mouse ALSO gets reset and when it does the mousewheel work more until I have reset the Bluetooth driver - I don't understand that either).

    Step 1) uninstalled using the Control Panel programs and features (select the 'View installed updates' option, it will be under the "Microsoft Windows" group under the name of "Microsoft Tinker (KB954955) name; right-click and select uninstall).

    Step 2) Redownloaded update by going to Windows update.
    [Here, I started Process Monitor from Windows Sysinternals and watched over the activity registry and files.
    [I noticed that the files have been placed under \winsxs\x86_microsoft-windows-tinker.954955_31bf3856ad364e35_6.0.6000.16748_none_d033bc76015c6b52]

    Step 3) I went into \winsxs\x86_microsoft-windows-tinker.954955_31bf3856ad364e35_6.0.6000.16748_none_d033bc76015c6b52
    [I tried to copy the files in \Microsoft Games\Tinker, but my rights have been... bad]

    Step 4) I gave myself ownership and rights to full access and then in the folder and files. (Right click on the folder, select 'Properties', select the 'Security' tab, press the 'Advanced' button, click on the 'Owner' tab, select the button 'modify...) ", select yourself as the owner of the list and press OK once, then twice for the other dialog box. Then click on 'change... '. ", then users of the Group (with, normally, your own user name) and click on the button 'change... '. ("and check"Full control"permission, click on the OK button once, then twice for the other dialog box.)

    Step 5) I copied files in the \Microsoft Games\Tinker folder of
    [I then ran the game, the splash screen appeared! Yes! But he then crashed. I start Process Monitor, and after a while I discovered that he was looking for mui files in the IN-us folder. I know most of the time that they are in fact resources langauge files used by Vista to Localize games without the need of fully compiled DLLs. The files are not in a subdirectory of the winsxs folder! So I uninstalled and reinstalled again and monitored the process of the day with Monitot process again. I noticed that used the x86_microsoft-windows-t... er.954955.resources_31bf3856ad364e35_6.0.6000.16748_en - us_fe0acb24d205d6e5 and x86_microsoft-windows-t er.954955.resources_31bf3856ad364e35_6.0.6000.16748_fr - fr_a08d9e07c4fedeec. Consider that when the file name is too long, the MSI installer shortened this name, in this case, change to 'tinker' to 't... UH. " So I looked in the folder and the missing .mui files were there!

    Step 6) I created the settings records own regional (in my case en-US and fr - FR), in the case of Tinker.

    Step 7) I then changed the rights of all language files (in this case x86_microsoft-windows-t.. er.954955.resources_31bf3856ad364e35_6.0.6000.16748_en - us_fe0acb24d205d6e5 and x86_microsoft-windows-t er.954955.resources_31bf3856ad364e35_6.0.6000.16748_fr - fr_a08d9e07c4fedeec) as described in step 4.

    Step 8) I copied the .mui files in the respective language files in the directories in the appropriate language of Tinker.

    Run the game and it works.

    Jeez.

    The only thing that remains is to create a shortcut in the games by ctrl-shift-drag and drop Panel executable Tinker in the list of games. I take it this isn't like the original shortcut however since there is no note for her? ...

  • Best practices to write objects to files

    Hello

    What is the way to recommend to objects from/to a file read/write? Is there something equivalent to an ObjectOutputStream in the BlackBerry API?

    I currently use 4.6.0 simulating on a "BOLD".

    Thank you

    No support for reflection in the software of the device, so there is no support for the serialization of the generic object. Each object you want to write to a stream will need to know how to do for herself. You can model this on the interface Externalizable J2SE, for which there are a lot of examples and examples of code floating around. It is especially pretty simple, if time-consuming. The only complicated question is version control, but it is also there with the serialization of the object based on the reflection.

  • BlackBerry Smartphones transfer ringtones media channel area concentric tone?

    This is probably a weird complicated question but this storm and blackberry phone in general is all new to me.  I downloaded ringtones, who went to the songs of media so I made a playlist named ringtones for them.  Now, I have noticed that when you go to the media there are a choice music etc., voice memo, ringtones, pictures chose to.  How can I move the ringtones I have in my playlist in media section where it says ringtones?  Any help would be greatly appreciated.

    I'm trying to do things on my storm while I'm here in my cabin in the snow-covered mountains of Colorado where I have no service so everything is hard for me, in addition to being again at the BlackBerry and especially the storm.

    ONEC you in the media application, open the menu and select Explorer.
    Then you have a file manager: you can select a file and move it to another folder.

  • Sending a network private VLAN virtual

    We have a situation where we have 2 server company that are geographically separate cluster.  The clustering software will not work unless one of the connections on both servers is on the same network segment.  I was informed by the seller that it has been accomplished in the past via a VIRTUAL LAN.  Is it possible to send one VLAN via a VPN IPSEC encrypted using an ASA 5510?  If so, how it is and how this address would be announced on?  I know it's kinda a complicated question, so thanks in advance for the effort.

    It is not possible, one VLAN is set on layer2 tunneling ipsec encrypts IP packets and therefore operates in Layer 3. You need switching tehcnology to do this, such as dark fibre, or EoMPLS, if you have an mpls connection between your sites. You could focus on L2TP, might be able to do what you have to, but in my opinion, it is not available in new versions of asa > 7.x

  • All programs - where is it in Windows 8?

    I am a new user of Windows 8, but I'm a Windows user for more years that I mean.

    I installed programs on my computer.  However not all applications I have installed do appear not in the section 'All the Apps' of Windows 8.  It's extremely frustrating because I have difficulties in some cases because of need to take additional steps to launch programs.
    I read several comments in the community pages on it, and it doesn't seem to be a correct answer, or one that will work.
    Anyone know how we can access the "all programs" lists without having to go through the control panel uninstall a program function to find programs?  Sorry for this complicated question.
    Any help would be appreciated.
    Anita

    I also like the type search function. He has been formally integrated starting with Windows Vista and continued with 7 and 8.  Just open your Start menu (or splash screen) and start typing.  Windows XP this could have to do with the snap desktop search.

    In Windows 8, you can join the "all programs" list by right clicking on an empty area of the start screen and choosing 'All the Apps' in the toolbar that appears.

    Windows 8.1, you will receive in mid-October, it is changed to an arrow on the screen will always be visible, so users will see and be able to use it without right-clicking.

  • How to refresh a coresponding report

    Hello

    hope that this is not a complicated question.

    What I want to achieve is to have master-child reports on the same page. And I would like to have the details (child records) to be updated whenever a new record is selected in the main report.

    appreciate your comments.

    Hello

    There are probably easier ways how to make things happen, using only declarative APEX features. I have created an example of a project based on the EMP and DEPT tables (83982 - mast_detDA) here:

    https://Apex.Oracle.com/pls/apex/

    workspace: tests

    user: supporter

    PWD: supporter1234

    so check it out how it's done.

    Main report using this select

    Select (apex_item.radiogroup)

    p_idx-online 1

    p_value-online Dept. DEPTNO,

    p_selected_value =>: P1_SELECTED_DEPT,

    p_onchange-online '$s ("P1_SELECTED_DEPT", this.value)') as DEPTNO,.

    DEPT. DNAME as DNAME,

    DEPT. As LOC LOC

    DEPT Dept

    defines a hidden item P1_SELECTED_DEPT when clicked. There is a dynamic action on this type of item selection - Action update, region.

    Select for the detailed report is:

    Select EMP. EMPNO as EMPNO,

    EMP. As ENAME ENAME,

    EMP. WORKSTATION,

    EMP. MGR as MGR,

    EMP. Hiring as HIREDATE date,

    EMP. SAL like SAL,

    EMP.COMM as COMM,

    EMP. DEPTNO as DEPTNO

    from EMP EMP

    where deptno =: P1_SELECTED_DEPT

    and the important thing here is to present the hidden element P1_SELECTED_DEPT.

    Hope that helps.

    Kind regards

    Pavel

  • Fill in several areas of direct paint with a gradient selection

    Hi all

    I have a very brief but complicated question. I am filling several areas with just a gradient in paint, so that they seem to overflow one. Is it possible? See the image below for what is happening now.

    Knipsel.PNG

    I don't see why you should use Merge. It works without it for me.

    But you will have to click and drag with the gradient tool.

Maybe you are looking for

  • Why Thunderbird deletes my passwords?

    Anyone have any idea of how I can "cure" the problem with Thunderbird (v 31.7.0) why can I send an email, and 30 minutes later cannot because Thunderbird has been mysteriously deleted and SMTP password/settings? Happened many and many times lately an

  • How can I fix it? Dialog boxes does not completely open and boxes of competition do not work.

    I use a Mac Book Air and OS X Lion 10.7.5. Firefox has been suspended until periodically and recovers after the closing and re-opening, but it increases the frequency of crashes. All other programs work correctly and do not hang up. This also happens

  • Download Windows XP?

    Sorry for my English. Hello! Happy new year! :) I don't want to install operating system disk "Reanimator" because there are old pilots and Service pack 2. If I download WinXP Home as distribution disc I can integrate the Service Pack 3 again, patche

  • WSCAPI system file missing and the Security Center will be not turn on.

    -Micorsoft Fix It Center report WSCAPI system file does not exist.  In addition, Windows security system is off and will not turn on.  Are these related issues?  What can be done to solve these problems?  Fix - It Center could not fix and offered no

  • cannot not to download the software driver for USB connected HP Officejet pro 8500 A909a

    My HP Officejet pro 8500 A909a is NOT a wireless printer.  It is connected via a USB port. I tried both find and download the drivers for this printer and also using the wizard to download and installation of HP (hppiw.exe).  The download was interru