Include '\' escape charecter in normal String

I just want to include in \ charecter in a string
like "please divide 1000/100 when you do this"
but is not allowing me .Please help me out thanks.

you need to escape the escape. ie
System.out.println("600 \\ 3" );
will display as
600 \ 3

Similar Messages

  • HTML Tag String to Normal String

    Hi all,
                This is sample HTML Tag string. How can I convert this into normal string
    '< s t y l e   t y p e = " t e x t / c s s " >
    p   { m a r g i n : 0 p x   0 p x   0 p x   2 p x ; }
    u l   { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    o l   { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    . N o r m a l   { f o n t - f a m i l y : P o r t a b l e   U s e r   I n t e r f a c e ; f o n t - s i z e : 1 1 p x ; c o l o r : # 0 0 0 0 0 0 ; v e r t i c a l - a l i g n : m i d d l e ; }
    . T a b l e D e f a u l t   { b o r d e r - c o l l a p s e : c o l l a p s e ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t   t h   { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t   t d   { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x   s o l i d   # 0 0 0 0 0 0 ; }
    < / S T Y L E >
    < p   s t y l e = " m a r g i n : 0 p x ; " > < s p a n   c l a s s = " N o r m a l " > R e j e c t e d < / s p a n > < / p > '
    The above string, I highlighted the wanted string
    Regards,
    Fame

    You really got html with that lots of spaces included?
    May be something like the below
    with atext as (
    select '< s t y l e  t y p e = " t e x t / c s s " >
    p  { m a r g i n : 0 p x  0 p x  0 p x  2 p x ; }
    u l  { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    o l  { m a r g i n - t o p : 2 p x ; m a r g i n - b o t t o m : 2 p x ; }
    . N o r m a l  { f o n t - f a m i l y : P o r t a b l e  U s e r  I n t e r f a c e ; f o n t - s i z e : 1 1 p x ; c o l o r : # 0 0 0 0 0 0 ; v e r t i c a l - a l i g n : m i d d l e ; }
    . T a b l e D e f a u l t  { b o r d e r - c o l l a p s e : c o l l a p s e ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t  t h  { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    . T a b l e D e f a u l t  t d  { p a d d i n g : 2 p x ; v e r t i c a l - a l i g n : t o p ; t e x t - a l i g n : l e f t ; b o r d e r : 1 p x  s o l i d  # 0 0 0 0 0 0 ; }
    < / S T Y L E >
    < p  s t y l e = " m a r g i n : 0 p x ; " > < s p a n  c l a s s = " N o r m a l " > R e j e c t e d < / s p a n > < / p > ' t from dual
    select
    regexp_substr (t, '>([^<{]+)< /', 1, level, null, 1) t
    from atext
    connect by
    level <= regexp_count(t, '>([^<{]+)< /')
    and
    trim(regexp_substr (t, '>([^<{]+)< /', 1, level, null, 1)) is not null
    T
    R e j e c t e d

  • How do I convert the ASCII output of a Maxtek TM-350 QCM Deposition monitor to a normal string I can read?

    Hi!
    I'm working wiht a Maxtek TM-350 QCM Thickness Monitor, and I am having some trouble deciphering the output from the monitor.  I am using an RS232 interface to communicate with the monitor.  I wrote a little VI to try to just query for the version number of the software that is being used.  The instruction manual said to send the message Chr$(255)+Chr$(254)+Chr$(1)+Chr$(1)+Chr$(0)+Chr$(254).  So, I built an array of those numbers, converted it to a string and sent it out via the Visa Write command.
    From the instruction  manual, I thought I was supposed to get back Maxtek TM-350 Software Version X.XX.  When trying to read what was sent back I tried a couple of things.  First, I just read the string, which looked like a bunch of special characters (squares, y's with dots over them, etc.), which I think is ASCII code.  So, I tried to convert that into a normal string I could read using a scan value command.  That didn't work, so I tried to convert it to a hexadecimal string, which didn't help either.
    I attached my VI and a copy of the instructions manual for the TM-350 below.  Does anyone have some ideas on how I can fix this problem?
    Thanks!
    Piet
    Attachments:
    tm-350400_manual_en_Rev12_10-2005.pdf ‏748 KB
    Maxtek_TM-350_Test.vi ‏32 KB

    It is hard to tell without seeing what you transmitted and what was returned. Try downloading portmon to watch the serial data.
    http://www.microsoft.com/technet/sysinternals/utilities/portmon.mspx
    The attached might get you started.
    Attachments:
    read data from serial port.vi ‏43 KB

  • Symbol output using VISA but it suppose to be normal string

    i used VISA to retrieve data from device(TADATAKER). when i unload the historical data to my computer. The data come out all symbols and i am sure that the data is in normal string format because i can receive it correctly in using VB.How to solve it?Is it the computer speed will affect the VISA or the VISA time out problem to receive data?I also not really understand the time out function. If within the time out the VISA also cant receive data it will gv a error message.How do i know when the device will return data to computer.why it can not stand there and keep going receive data without gv error.What is the best time out number or how to determine it?

    please post the exact VISA query you are using.
    As far as the timeout, I rarely change the value. I usually set it to 2 seconds and leave it alone unless I have a very long operation coming up. There is one particular setting a have to use on my power meter to measure a very low duty cycle noise waveform. The power meter can take up to 45 seconds to settle and return data. So before I send the query command I set the timeout to 45000mS. I believe you can set it to a very very large value. Check the VISA manual. ]
    The purpose for the timeout function is so that if you make a query and the instrument is not connected to the bus, or has an internal problem, or there is some other failure, your program doesn't have to just lock up. The query will fail with
    a timeout and your code can use the error information to notify the operator of the problem. So set it to some reasonable value and change it when you start a long operation.
    You mention using VB, but it is unclear if you are still using it. What are you programming with now? That may also be helpful to solving your problem.

  • How to switch on and off displaying of escape sequences in the strings in Visual Studio 2012 during debugging?

    Hi. We have faced a problem on couple of our installations of VS2012. During debugging on these two computers escape sequences in the strings (C++) are not shown (when debugger stops on breakpoint). This creates problems during debugging. On other
    installations escape sequences are shown.
    For example in the first case string value is shown like "abcdef" while in the second case it is shown like "abc\n\t\tdef".
    Where this can be changed?

    This is typically controlled with a format specifier on the debugger expression.  For example, if you have a char* variable called "mystring", then enter the following expressions in your watch window and compare:
    mystring
    "abc\n\tdef"
    mystring,s
    "abc\n\tdef"
    mystring,sb
    abcdef
    the "b" is for "bare" and eliminates quotes and escape sequences.
    There are others such as su, sub, s8, bstr, etc.  See
    Format Specifiers in C++.
    But having said that, now I have to ask:
    Is it native or managed code?
    And where, specifically, in the debugger is this value being displayed?  I ask because there are numerous places where a string can be displayed:  watch window, quick-watch window, data-tips (pinned and unpinned), memory window, text visualizer,
    debug messages, immediate window, command window, etc.
    And, if you are examining a variable, what is its type?   (e.g.: char*, wchar_t*, std::string, std::wstring, etc.)
    And if you are examining a complex debugger expression, what expression did you use?  e.g.: mystring,sb

  • Hex string and normal string concatenat​e issue

    Hello,
    what i have is a hex string and a normal string which i want to concatenate into one string.  the problem is that in the output concatenated string you need to select either "normal display" or  "hex display" in the properties.  the problem is if you select hex display then the normal string is converted into hex and if you select normal display then the hex value is not correct.  is there a way to display the hex value in normal display mode?
    attached is a vi showing the problem
    Attachments:
    hex to string.vi ‏7 KB

    lfoitek wrote: ...  i am creating a state machine and then translating it into string representation ... i just can't figure out how to do the conversions to display the correct output.
    If by "correct output", you mean you want something like 4bytes (0xBADDF00D) converted to 8bytes ("BADDF00D" in normal display), then there are several ways ...
    Message Edited by Donald on 08-31-2006 04:17 PM
    =====================================================
    Fading out. " ... J. Arthur Rank on gong."
    Attachments:
    HexHeadaches.jpg ‏24 KB

  • How to escape % or % in a String?

    Hi, friends, I need to use a string variable, but don't know how to escape <% and %> in string, I tried to put \ between < and %, but compiler said it was invalid escape character. and do I need to escape / , too? thanks for any help. the code is here:
    <% String sc;
    if (request.getParameter("operation")==null) {
    sr="/servlet/littleBee_proj.Change_PCServlet?red=<%= request.getParameter("red")%>&
    green=<%= request.getParameter("green")%>&blue=<%= request.getParameter("blue") %>&
    applique.x=<%= request.getParameter("applique.x") %>&
    applique.y=<%= request.getParameter("applique.y") %>";
    else {
    sr="/servlet/littleBee_proj.Change_PCServlet?red=<%= request.getParameter("red") %>&
    green=%= request.getParameter("green") %>&blue=<%= request.getParameter("blue") %>&
    applique.x=<%= request.getParameter("applique.x") %>&applique.y=<%= request.getParameter("applique.y") %>&
    operation=<%= request.getParameter("operation") %>";
    %>
    <br> <INPUT TYPE="IMAGE" NAME="applique" SRC="<%= sr %>" >
    </FORM>
    </BLOCKQUOTE>

    You won't need the escape characters, because you don't need the <% and %>. You're already inside a java block, so go ahead and take advantage of it. Simply append the method call to your string as you usually would.
    <% String sc;
    if (request.getParameter("operation")==null) {
    sr="/servlet/littleBee_proj.Change_PCServlet?red="+request.getParameter("red")
    +"&green="+request.getParameter("green")+"&blue="+ request.getParameter("blue")
    +"&applique.x="+ request.getParameter("applique.x") +"&applique.y="
    +request.getParameter("applique.y");
    }Also, unless you know exactly what you're getting back from your request.getParameter() methods, it's usually a good idea to enclose them with single quotes ( ' ) in case there's a space or something in there. If there guaranteed to be numeric though, then you're probably ok.

  • Normal string ASCII characters are not shown after using string reversal.

    In a VI that I have written, there is a point where I take a simple 5 character string and input it to a reverse string node.  I also have an indicator on the output of the reverse string node so I can look at the reversed string.  Both the input and output indicators are in normal display mode.   For the input indicator I can see the input string with no problem.  But on the indicator at the output of the reverse string node I see nothing.  If I then put each of the indicators in HEX display mode, both indicators display the hex equivalent characters of the original ASCII characters, and the output indicator shows the characters reversed from that of the input indicator, as expected.  So why when I am in normal display mode, are the characters in the output indicator not showing up?  Thanks.

    What are the ASCII values that you are trying to display?  Perhaps they are non-printable ASCII values.
    Perhaps you can post a simple VI with the values in a string control and saved as a default.
    EDIT:  After seeing Rod's message, that seems very likely, especially considering that there is likely an EOL character if you are doing serial communication with some other device.
    Message Edited by Ravens Fan on 03-23-2009 12:04 PM

  • Include a variable in message string

    Hi,
    I want to include a variable in the message string like:
    wa_log-msg = 'Length for material number should be ' (here I want to iclude variable holding the length).
    How to do this?
    Thanks in advance...
    Regards,
    Sriram

    Hi, Sriram
    Hope following will solve out your problem,
    DATA: msg TYPE string,
          vlen(2).
    vlen = 19.
    CONCATENATE: 'Length for material number should be ' vlen INTO msg SEPARATED BY space.
    Best Regards,
    Faisal

  • Normal string display to Hex string display

    Hi all
    i like to convert a normal strijng display which contains alphanumeric strings to hex format
    String length will be of 25 characters which will be read through bar code reader
    Could someone help me in solving this
    Thanks
    Bala

    Hi smercurio_fc
    Thanks for the vi. i tried the method which you have sent me.
    So i cant transfer 'S' through serial port?
    Is there any other way to transmit this through Serial port.
    Also i need another clarification
    A sub vi is running inside my main vi and i need to stop/pause the sub vi from the main vi front panel. how could i can stop the sub vi?
    Thanks and regards
    Bala

  • PS: Need a Switch to Include OUs in Get-Mailbox String

    Hello--
    I'm using this string in Exchange 2010 (Powershell) to export our mailbox details.
    The command string works great and is exactly what I need, except, I want to include the OU that the mailbox is in in the outputted file.
    Here is the string I'm using. Can you tell me what the switch would be to include each mailbox OU and where in the below string I would list it?
    Get-MailboxStatistics -Database "MBDB" | Select DisplayName, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBDB.csv
    I tried a couple switches I got online, and they just keep throwing errors.
    Many thanks!
    Stephen
    Stephen Davis Systems Administrator Specialist

    Hi Bot,
    Thank you for your question.
    We could run the following command to export OU mailboxes:
    Get-Mailbox -OrganizationalUnit <OU name> -Resultsize Unlimited |Get-MailboxStatistics -Database "MBDB" | Select DisplayName, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBDB.csv
    If there are any errors when we run this command, I suggest we post error to
    [email protected] for our troubleshooting.
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support
    Hey Jim--
    The switch doesn't work. I tried to list the OU with different formats and it keeps throwing an error that it can't find the OU. Since this isn't really what I was looking for, don't worry about it. I'm trying to find an output that will include the mailbox
    user's name, its size, AND the OU, I can't use this anyway.
    If anyone knows of a code string that will produce these three outputs, I would appreciate it.
    Thanks,
    Stephen
    Stephen Davis Systems Administrator Specialist

  • Escaping quotes in select string

    I am using Apex 4
    I have the following as part of a select string used to generate a report
    CASE "VDE_AUDITS"."KQ" WHEN 2 THEN
    '<span style="background-color:#F00">Yes</span>'
    ELSE 'No'
    END AS CQ
    When i run the report I get <span style="background-color:#F00">Yes</span> displayed in the column
    I have used both Display as Text( escape special characters, does not save state)
    and Display as text (Saves state0 with no effect.
    Any advice appreciated
    Ed.

    @sddc my apologies. the forum is 'cleaning out' some of the code in the snippet
    there should be a span with a style giving a background colour of #F00 wrapped around the 'Yes' .. .if that makes sense. The forum wont display it
    thx Ed.
    Edited by: user3608949 on 05-Oct-2010 01:39
    Edited by: user3608949 on 05-Oct-2010 01:39

  • How to replace escape characters in a string ?

    Hi All,
    In my application I came across a problem where I want to replace a substring (contains escape characters also) with another string. The below shown code will replicate my problem :
    public class StringSearchAndReplace {
      public static void main(String args[])   {
        String stmt = " \\pntext\\bullet\\tab The question as to ";
        String newStmt = stmt.replaceAll("\\bullet\\tab",  "B");
        System.out.println("BEFORE: " + stmt + "\n");
        System.out.println("AFTER: " + newStmt);
    }Here I want to replace "\\bullet\\tab" with "B". I am unable to move further. Please help/suggest me in this regard.
    Its urgent.
    Thanks in advance.

    Satyaprasad_Mylavarapu wrote:
    Hi All,
    In my application I came across a problem where I want to replace a substring (contains escape characters also) with another string. The below shown code will replicate my problem :
    public class StringSearchAndReplace {
    public static void main(String args[])   {
    String stmt = " \\pntext\\bullet\\tab The question as to ";
    String newStmt = stmt.replaceAll("\\bullet\\tab",  "B");
    System.out.println("BEFORE: " + stmt + "\n");
    System.out.println("AFTER: " + newStmt);
    }Here I want to replace "\\bullet\\tab" with "B". I am unable to move further. Please help/suggest me in this regard.
    Its urgent.
    Thanks in advance.If the String you're trying to replace contains a slash you need four slashes (double it for java, then again because String.replaceAll takes a regular expression)
    So I think what you're looking for is:
    String newStmt = stmt.replaceAll("\\\\bullet\\\\tab",  "B");I haven't tested that though.

  • Count maximum occurance of charecter in a string

    HI all
    I want to know how to count the maximum number of occurrences of a character in a string
    for Eg String s = "aaabbccccccdddeeee" , here in this string the maximum occurrences charcter is "c" and its count is 5

    anilrp wrote:
    I want to know how to count the maximum number of occurrences of a character in a string
    for Eg String s = "aaabbccccccdddeeee" , here in this string the maximum occurrences charcter is "c" and its count is 5How did you do it manually (mentally)?
    Unless you are rainman I am guessing you
    counted the occurrences of each character
    then found the largest count.
    Do the same in your program.

  • I can't get the normal string from ResultSet

    Dear all:
    My EJB connected to Oracle 8i by using the Oracle thin JDBC driver. But when
    I get the string like this
    String str = ResultSet.getString(1);
    I got the return value was ASCII. For example, the right value should be "SMITH",
    but return value was "0x534Dxxxx".
    Another question is can ResultSet pass to JSP from EJB? If yes, how to do? I
    got problem when doing this.
    Thanks for everyone read this.

    * In Firefox 3.6 versions on Windows and Firefox 4 on Windows and Linux it's possible to hide the "Menu Bar" via "View > Toolbars" or via the right-click context menu of a toolbar.
    * Press F10 or press and hold the Alt key down to bring up the "Menu Bar" temporarily.
    * Go to "View > Toolbars" or right-click the "Menu Bar" or press Alt+V T to select which toolbars to show or hide (click on an entry to toggle the state).
    See also:
    * [[Menu bar is missing]]
    * http://kb.mozillazine.org/Toolbar_customization

Maybe you are looking for

  • Can Aperture do Panoramas and HDR ?

    Hi I Would like to buy Aperture, however I can nowhere find relevant information considering wheter Aperture relly can stich photography together to create a panorama. or HDR. I found it to be the very basic of function in photography editing softwar

  • Installing Java add-in Netweaver 2004s SR1

    Hello, I am trying to install a Java Add-in on a newly upgraded Netweaver 2004s SR1 system (upgrade was from NW04). This system is a Unicode ABAP system at the moment. When running the DB instance installation, it fails with this message: ERROR XXXX

  • Trouble opening pdf file, error 1074724867:3

    trouble opening pdf file, error 1074724867:3

  • +PSE 11 raw does not support Canon SX50

    Hi,    Just got my new Canon SX50HS camera. Looks like PSE 11 raw does'nt support it. How long does it normaly take after a camera is available to the public for Adobe to include it in its list? Where do I have to ask Adobe about that situation ? Cla

  • Pro*c sample programs

    could anyone direct me to where the sample pro*c programs (e.g., cppdemo1.pc) are? I don't find them in the instant client precompiler packages. Thanks in advance.