Can we eliminate " from a String using regEx?

Hi,
I have a process and we are calling an external web service.
Within code, I am setting the response from web service(string) to bpm object and using the same object in jsp for presentation.
For Ex.
bpmObject.empName = response from web service.
within the jsp, have a java script where in I am validating the value.
var empNm= "<f:fieldValue att="bpmObject.empName" onlyValue="true"/>";
It works fine but some times when response from web service is having '"' - double quote, it is giving error.
For Ex. bpmObject.empName = FirstName "SecondName" then the javascript error occurs. how can we remove the double quote from this?
Tried bpmObject.empName.replace(from : "\"", @to : " ") but it is still giving the same output FirstName "SecondName"
It works fine when I test by using a String str = "FirstName\"SecondName\"".replace(from : "\"", @to : " ") is giving correct result i.e. FirstName SecondName
Can RegEx help in this?
Thanks

I know its better to handle in jsp/javascript
var empNm= "<f:fieldValue att="bpmObject.empName" onlyValue="true"/>";
but the above line is giving javascript error always.
how to handle the same in bpm fpr code?
Edited by: Sreekant on Mar 3, 2011 1:44 AM

Similar Messages

  • How To Color a Text string using Regex (java.util.regex)

    Hello,
    How can I color a text string using regex class in 1.4?

    Yes, did you notice it said something about incredibly vague functionality?
    Let me break it down for you
    > How can I color a text string
    Strings do not have color... You can color a component (a label, a button), but you can't color a string
    > using regex class in 1.4?
    Using a regular expression? How would a regular exression color anything? Do you have embedded color codes? Are you searhing a string for some secret word?
    What are you talking about?

  • Extract the numbers in string using regex

    Hi,
    How to extract the numers in string using regex?.
    Already i tried split up the string using [\\s]
    For ex: "Uting Tatk and Window Panet 15"
    it gives the ans 15.
    if the string is
    For ex: "Uting Tatk and Window Panet 15 New!"
    i can't find the number.
    so plz give me some idea to get the number frm String.
    Thanks

    I am developing a java project to extract Table of
    content in a particular
    PDF.
    i extracted all topics.
    then i want 2 extract page number from dat extracted
    TOC.
    if the TOC ends with number then i can easily find
    out the number
    but in vain if the TOC ends with like this
    "Uting Tatk and Window Panet 15 New!".
    i could n't find the page number.What will you do if it says:
    "15 ways to find topics 42 new"

  • How can i get getwayed url string using pluggable nav in news portlet?

    hi.
    How can i get getwayed url string using pluggable nav in news portlet?
    A code just like below is what I want.
    <param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
    I tryed the following, but didn't work as I wanted.
    1.<param value="<pcs:valueexpr='var'/>">
    -> transformed. but I want the prefix 'param=' in the enquoted string's too.
    2. <param value="param=<pcs:valueexpr='var'/>">
    -> not transformed.
    Any idea?
    Hiroyuki

    Hi all,
    We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
    I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
    Performance Tuning & Profiling:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
    Using JRockit tools:
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
    Diagnostics & Troubleshooting
    http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
    Best Regards,
    Tuva
    JRockit PM

  • HT4356 Can I print from my iPhone using a HP Office-jet pro x8500

    Can I print from my iPhone using a HP Office-jet pro x8500......
    If so.... How????
    Cheers

    http://support.apple.com/kb/ht4356

  • Can I print from my iPad using airport extreme?

    Can I print from my iPad using airport extreme 802.11n ?

    iOS devices use AirPrint to print directly to a printer. That would require a printer that is AirPrint-ready. Unfortunately, just connecting a non-AirPrint-ready printer to the USB or Ethernet ports of the AirPort Extreme Base Station (AEBS), will NOT enable it for AirPrint.

  • Can I print from my ipad using a windows 7 shared printer?

    Can I print from my ipad using a windows 7 shared printer?

    yes... all you need to do is go to the app store and look up something like; printer for ipad and then you are good to go. my ipad lets me so im sure it will you too. i hope i helped you

  • Can I print from my iPad using wifi

    Can I print from my iPad using wifi thanks

    I know I can use Airprint and other solutions; that wasn't the point.  That will no doubt work from home but what use is that to me in other location?  I'm looking to print online purchase receipts, customer receipts, photos, emails etc.  Chances are I'll be doing all that from my PC anyway and will stick to that.  Why would I want to email my local printer and wait till it gets back to me?  And why would I want my PC on just to print?  Why wouldn't I just print direct from the PC?  I'm missing something here.   Why overcomplicate a direct process? 
    Would you be saying the same thing if mountain lion removes print access and you're told to use airprint?  No you won't!
    I want to print emails etc from my ipad as I wander different offices, or different houses.  That other software did it (at a price I wasn't acepting) and I would assume someone else will build it in eventually,  I have to ask why Apple want this controlled through one channel (largely) and can only see it as another tie-in to some money garnering solution in due course.  It can't be processing or memory limitations as its 64Gb and Apple tell me it's a powerful gadget. 
    Time to see what my Asus will allow....  can't be this bad surely, but you never know.  Trusty networked HP6 laserjet (via jetdirect box) and Oficejet8000 (duplex) aint going to be replaced in the near future.  Trusty workhorses do all I want, efficiently, effectively, and cater for 4 users in this home.

  • HT4356 can i print from my ipad4 using a kodak wireless printer

    can i print from my ipad4 using a kodak wireless printer

    If its listed as an airprint enabled printer, you can print right from the ipad with the built in feature. If not, there are other options.
    iOS AirPrint Printers  http://support.apple.com/kb/HT4356
    How to Print from Your iPad: Summary of Printer and Printing Options
    http://ipadacademy.com/2012/03/how-to-print-from-your-ipad-summary-of-printer-an d-printing-options
    Print from iPad / iPhone without AirPrint
    http://ipadhelp.com/ipad-help/print-from-ipad-iphone-without-airprint/
    How to Enable AirPrint on a Mac and Use Any Printer
    http://ipadhelp.com/ipad-help/how-to-use-airprint-with-any-printer/
    iPad Power: How to Print
    http://www.macworld.com/article/1160312/ipad_printing.html
    Check out these print apps for the iPad.
    Print Utility for iPad  ($3.99) http://itunes.apple.com/us/app/print-utility-for-ipad/id422858586?mt=8
    Print Agent Pro for iPad ($5.99)  http://itunes.apple.com/us/app/print-agent-pro-for-ipad/id421782942?mt=8   Print Agent Pro can print to many non-AirPrint and non-wireless printers on your network, even if they are only connected to a Mac or PC via USB.
    FingerPrint turns any printer into an AirPrint printer
    http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/
    Print from iOS device to virtually any printer
    http://www.lantronix.com/it-management/xprintserver/xprintserver.html

  • How can I print from my iPad using AirPrint?

    I have an HP6500 printer connected to an Ethernet port of my wifi router. How can I print from my iPad using AirPrint?

    Your printer may not support Airprint.  Attached is a how to from Apple for Airprint.  If you click on the link for HP supported printers, the HP 6500A is listed, not the HP 6500.
    http://support.apple.com/kb/HT4356

  • How to get First Occurnece of SubString from any string using SharePoint Designer Workflow in SharePoint Online 2013(Office 365)

    Hello All,
    I am facing Problem in SharePoint Designer Workflow. The Problem is that while replacing some subtstring with Space from a string which contains item like {Test, Test, Test, Test}, It replaces all items.
    Below two line we are using in Workflow.
    Can any body suggest some soultion for Finding first ouucrence of ", " so that we can replace only first value from string not all. When String values are different then getting proper values but if String values are same with comma
    seperated then it replace all values.
    Please some body help and your help will be heighly appriciable.
    Thanks in Advance.
    Thanks,
    Vivek Kumar Pandey   

    Have you tried to use Regular Expressions instead of Replace?
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Can you stream from BBCi Player using Apple TV?

    Hi All,
    Looking into getting the apple TV for my dad but want to know if it will actually come in handy so please tell me ...
    Can you stream from BBCi Player/ITV Player from laptop to TV via the Apple TV?
    Many Thanks

    I thought that members of this forum may like to see the latest, 10th August 1013,  respons from the BBC -
    Thank you for contacting the BBC iPlayer support team.
    I understand that a previous response from us didn’t resolve an issue you have with the BBC iPlayer, via your Apple TV device.
    Streaming programmes should be able to play using airplay but downloaded programmes are not currently supported on the Apple TV.
    However, we aim to resolve this in a future update to the BBC iPlayer.
    We do appreciate the time taken to report this issue as all feedback received helps us to develop and improve the service.
    Your comments have been used to inform a daily report which is sent to the BBC iPlayer team, including the head of BBC iPlayer.
    Seems we are keeping our fingers crossed that Apple and the BBC will have the same common aim in getting AppleTV to incorporate the iPlayer.

  • How to disply empty cell from a string using stringtokenizer class

    Hello All
    I had wriiten a small program to read the string and split the string into different tuples.When i had empty cell in string i am unable to display it. Can any body help me out pls?
    code given below
    import java.io.*;
    import java.util.StringTokenizer;
    class Tokenize {
    // Create BufferedReader class instance
    static InputStreamReader input = new InputStreamReader(System.in);
    static BufferedReader keyboardInput = new BufferedReader(input);
    static String record;
    /* Main method */
    public static void main(String[] args) throws IOException {
         //declare the string variables
         String text,delim,var,delimv,vname;
         String X = "x";
         int i = 1;
         //read the inputs from keyboard for variables and delimv
         System.out.print("What is your variable names? ");
    var = keyboardInput.readLine();
    System.out.println("variable are :" + var );
         System.out.print("What is your separator? ");
         delimv = keyboardInput.readLine();
         //read the inputs from keyboard for string and delim
    System.out.print("What is your String? ");
    text = keyboardInput.readLine();
    System.out.println("String is :" + text );
         System.out.print("What is your separator? ");
         delim = keyboardInput.readLine();
         //create the stringtokenizer class instance
         StringTokenizer vt = new StringTokenizer(var,delimv);
         StringTokenizer st = new StringTokenizer(text,delim);
         //print the nexttokens as long as tokens and variables are available
         while (vt.hasMoreTokens()) {
         while (st.hasMoreTokens()) {
         vname = vt.nextToken();
         //     if(st.nextElement() == X){
         // System.out.println("filed is empty");
         // System.out.println(vname + "= ");
         System.out.println(vname + "=" + st.nextToken());
                   //nextToken());
    Variables name : cat1,cat2,cat3,cat4,cat5,cat6,cat7,cat8,cat9,cat10,cat11
    String name : Produkten;Voor hem;;Funny Mask ;12.50;4.90;17.40;1-5 dagen;0;http://www.eroticastore.nl/ProductDetails.asp?ProductId=21733&ReferrerId=134;http://www.eroticastore.nl/ProductImages/thumb_3300000510.jpg
    Note : Empty cell is in between "Voor hem" and "Funny Mask"
    Thanks In advance,
    Murali

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • Can I print from my Ipad using airport express?

    Hi I am trying to find out if I can print from my Ipad mini to my printer attached to airport express, this works with my book but ipad cannot find printer, if I download airport utility to Ipad will that make a difference or should I be looking at a third party app?

    printing to a non-airprinter from an iPad
    To print from the iPad your going to have to install some more software:
    -- many printer makers have iPad applications for their printers.  Look in the app store
    -- generic software like Printopia
    iPad Print Applications -- usually free:
    Brother iPrint&Scan
        http://itunes.apple.com/us/app/brother-iprint-scan/id382775642
    Canon Easy—PhotoPrint
        http://itunes.apple.com/us/app/canon-easy-photoprint/id331269951?mt=8
    Epson iPrint
        http://itunes.apple.com/us/app/epson-iprint/id326876192?mt=8
    HP  ePrint Home & Biz
        http://itunes.apple.com/us/app/hp-eprint-home-biz/id299531647?mt=8
    http://h10025.www1.hp.com/ewfrf/wc/searchResults?tmp_product=HP+Photosmart+5515+ e-All-in-One+Printer+-+B111a&product=5063608&tmp_qt=eprint&cc=us&dlc=en&lc=en&su bmit
    Lexmark and possible Dell
        http://itunes.apple.com/us/app/lexmark-mobile-printing/id469415392?mt=8
    Kodak Pic Flick
        http://itunes.apple.com/us/app/kodak-pic-flick/id336104814?mt=8
    Samsung
        http://itunes.apple.com/us/app/samsung-mobile-print/id429611283?mt=8
    Helper app -- /print n share
    Print directly to the widest range of network or WiFi printers available in any app. Alternatively print via your computer to ALL printers including USB & Bluetooth printers. View read and display large PDF, Office & iWork files. Easily transfer & store files from the Cloud or your computer.
    https://itunes.apple.com/us/app/print-n-share/id301656026?mt=8
    more helper apps
    http://www.howtogeek.com/102671/how-to-enable-airprint-for-ios-printing-from-any -mac-or-windows-pc/
    Generic Software:
    You can connect the printer to a computer and install software on your computer to print from your ipad to the comptuer then to the printer.
    Software for your computer's printer:
    Mac and Windows
      http://osxdaily.com/2010/12/01/make-any-printer-airprint-compatible/
    Makes any printer AirPrint® compatible so you can print from an iPad® or iPhone®.  Reportedly works for any router.
    http://www.netgear.com/landing/genie/default.aspx
    Mac software
    example:
    http://www.ecamm.com/mac/printopia/
    Should you have some office printer that are connected to a computer there are print enablling applicaionts you can run on the iPad to print to such printers.
    For Windows, try: PrintBreau, or PrintCentral.
    PrintCentral Pro
      http://itunes.apple.com/us/app/printcentral-pro/id426362921?mt=8
    Source: https://discussions.apple.com/thread/2729284?start=0&tstart=0
    Thanks to AirPrint Hacktivator you can turn any printer connected to your Mac or Windows PC into an AirPrint compatible printer.  from:
    http://osxdaily.com/2010/12/01/make-any-printer-airprint-compatible/
    Mac and Windows
    "WePrint enables printing to shared printers for iOS/Android devices from our range of printing Apps."
    http://mobile.eurosmartz.com/downloads.html
    this google query will give you more options
    ipad airprint via mac
    Buy another box
    "xPrintServer enables wireless printing for iOS devices such as iPads® and iPhones® using their native print menu. It eliminates the need to print through apps, install software, or email yourself documents for printing. And more importantly, you don't need to buy a new printer because xPrintServer works with more than 4,000 top brand USB and network printers. "
    http://www.lantronix.com/it-management/xprintserver/xprintserver.html
    You have to check whether this box supports your printer
    http://www.lantronix.com/it-management/xprintserver/xprintserver-supported-print ers.php

  • How to get numeric data from a string using t-sql

    Hi All,
    I have a table with 2 columns ID as Int and Message as nvarchar(max)
    Create table Sample
    ID int not null,
    Message nvarchar(max) null,
    CONSTRAINT [PK_ID_Msg] PRIMARY KEY CLUSTERED
    ID asc
    Insert statement:
    INSERT INTO
    Sample (ID, Message)
    VALUES (1, 'X_YRS: 00 ; X_MONS: 18 ; X_DAYS: 000 ; Y_YRS: 00 ; Y_MONS: 16 ; Y_DAYS: 011 ; Z: 1 ; Z_DATE: 09/04/2014
    INSERT INTO Sample (ID, Message) VALUES (2, 'X_YRS: 01 ; X_MONS: 15 ; X_DAYS: 010 ; Y_YRS: 00 ; Y_MONS: 18 ; Y_DAYS: 017
     ; Z: 1
     ; Z_DATE: 06/02/2012')
    Data in the table looks like:
    ID             Message
    1       X_YRS: 00 ; X_MONS: 18 ; X_DAYS: 000 ; Y_YRS: 00 ; Y_MONS: 16 ; Y_DAYS: 011 ; Z: 1 ; Z_DATE: 09/04/2014
    2       X_YRS: 01 ; X_MONS: 15 ; X_DAYS: 010 ; Y_YRS: 00 ; Y_MONS: 18 ; Y_DAYS: 017 ; Z: 1 ; Z_DATE: 06/02/2012
    Need out put as below, just with numeric data:
    ID      X-Column         Y-Column         
    1       00 18 000        00 16 011
    2       01 15 010        00 18 017
    So, please I need t-SQL to get above output.
    Thanks in advance.
    RH
    sql

    ;With CTE
    AS
    SELECT s.ID,RTRIM(LTRIM(STUFF(Val,1,CHARINDEX(':',Val),''))) AS Val,RTRIM(LTRIM(LEFT(Val,CHARINDEX('_',Val+'_')-1))) AS Pattern,
    --ROW_NUMBER() OVER (PARTITION BY LEFT(Val,CHARINDEX('_',Val+'_')-1) ORDER BY RTRIM(LTRIM(STUFF(Val,1,CHARINDEX(':',Val),'')))*1)
    f.ID AS Seq
    FROM Sample s
    CROSS APPLY dbo.ParseValues(s.[Message],';')f
    WHERE ISNUMERIC(RTRIM(LTRIM(STUFF(Val,1,CHARINDEX(':',Val),'')))+'0.0E0')=1
    SELECT ID,
    STUFF((SELECT ' ' + Val FROM CTE WHERE ID = c.ID AND Pattern = 'X' ORDER BY Seq FOR XML PATH('')),1,1,'') AS XCol,
    STUFF((SELECT ' ' + Val FROM CTE WHERE ID = c.ID AND Pattern = 'Y' ORDER BY Seq FOR XML PATH('')),1,1,'') AS YCol,
    STUFF((SELECT ' ' + Val FROM CTE WHERE ID = c.ID AND Pattern = 'Z' ORDER BY Seq FOR XML PATH('')),1,1,'') AS ZCol
    FROM (SELECT DISTINCT ID FROM CTE)c
    ParseValues can be found here
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    Numeric check logic is as per below
    http://visakhm.blogspot.in/2014/03/checking-for-integer-or-decimal-values.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Animated Gif's in Mac Mail

    There have been a couple of threads on this now closed without a solution. I discovered how a somewhat tedious way to get an animated gif into a mac mail msg while seeing the animation in action. I used iWeb to create a blank white pate. I then inser

  • Problem with variable inside split-join

    Hello, I'm using Oracle BOM Suite 10.3.0.0 and i want to use the split gateway. In general the split activity ends with a join. the problem is when i affect a value to a variable between the split and join, it could not get this value after the join,

  • QM Certification Course Material

    Hai QM Gurus, I am plan to do QM Certification exam, so any one kindly send the course material for the same. Thanks in Advance. My Id: [email protected] Babusingh.S

  • Is it possible to purchase just photoshop (Mac) as a disk or download?

    I need CS3 or later but want new - not a used product, having read about licensing and installation problems. I don't need the entire CS, just Photoshop. Elements are too limited. Thanks!

  • How to install from FCP 1 via upgrades to FCP 3 on new G4

    I finally bought a new Powerbook G4 to replace my G3 350. (It really is it quite a bit better... Amazing how things have come along in six years...) Anyway, I started with FCP when it first came out with version 1 and bought upgrades for 2 and 3 whic