How can I match the plus sign in a regex or indexOf statement?

How can I match the plus sign in a regex or indexOf statement?
I've tried
String.indexOf("\\+");
String.indexOf("+");
String.indexOf("\\\+");
and
String.contains("+);
String.contains("\\\+");
Thanks.

String str = "abc+123";
System.out.println(str.indexOf("+"));
System.out.println(str.contains("+"));works for me.
Mark

Similar Messages

  • How can I set the default sign in the mail accounts? thank you

    How can I set the default sign in the mail accounts? thank you

    From the Mail menu bar, select
    Mail ▹ Preferences ▹ Signatures
    Drag the signature to each of the desired accounts in the list on the left. If you want it to be the default signature added to all messages sent from that account, select the account, and then select from the Choose Signature menu at the bottom of the dialog.

  • How can i get the euro sign on my keyboard

    how can i activate the euro sign on my keyboard

    Have you tried pressing key combination Alt(Option) + 2 - it should give you this € (using a UK keyboard).

  • I can't see the "plus" sign in my upper right corner ind the calendar!?

    I can't see the "plus" sign in my upper right corner ind the calendar!?

    In my database connection i can`t see the plus sign on the
    database tab.
    Not quite clear to me what you mean by that. In any case, you
    should configure the data source in the Coldfusion Administrator.
    Open the CF Admin page,
    http://127.0.0.1:8500/CFIDE/administrator/index.cfm
    . Go to the
    Data Sources section. Create a new datasource, for example,
    by entering the following
    Data Source Name:
    eventplanning
    Driver:
    Microsoft Access with Unicode
    Press the
    Add button. Enter the value
    Database File:
    C:\CFusionMX\wwwroot\cafe_townsend\contact\coldfusion\eventplanning.mdb
    Press the
    Submit button. Coldfusion will then verify the connection to
    the database. Confirm that its status is
    OK. If so, the eventplanning datasource is configured for
    use in your Coldfusion application.

  • Can`t see the plus sign

    Hi,
    In my database connection i can`t see the plus sign on the
    database tab.
    My local root folder is:
    C:\CFusionMX\wwwroot\cafe_townsend\contact\coldfusion\
    remote: C:\CFusionMX\wwwroot\
    testing server: C:\CFusionMX\wwwroot\
    I placed the database in here:
    C:\CFusionMX\wwwroot\cafe_townsend\contact\coldfusion\eventplanning.mdb
    can anyone help me.

    In my database connection i can`t see the plus sign on the
    database tab.
    Not quite clear to me what you mean by that. In any case, you
    should configure the data source in the Coldfusion Administrator.
    Open the CF Admin page,
    http://127.0.0.1:8500/CFIDE/administrator/index.cfm
    . Go to the
    Data Sources section. Create a new datasource, for example,
    by entering the following
    Data Source Name:
    eventplanning
    Driver:
    Microsoft Access with Unicode
    Press the
    Add button. Enter the value
    Database File:
    C:\CFusionMX\wwwroot\cafe_townsend\contact\coldfusion\eventplanning.mdb
    Press the
    Submit button. Coldfusion will then verify the connection to
    the database. Confirm that its status is
    OK. If so, the eventplanning datasource is configured for
    use in your Coldfusion application.

  • How can i change the dollar sign in to euro in the invoice template ( iPad)

    How can i change the dollar sign in to euro in the invoice template ( iPad) ?

    Hi,
    Touch the cell you want to change the currency in to select it. Touch the info button on the top right part of the screen (i). Select the format tab, then currency. Touch the blue dot on the right of the currency line and then choose your currency

  • Help! How can i remove the lock sign on my ipad3? it can't open, rotate or turn to next page because there is a lock sign at the bottom?

    Help! How can I remove the lock sign on my ipad3? it cannot rotate, turn to next page, or even open when it's on standby mode, even when i press the home button it cant open..thanks

    I'm not sure exactly what you are seeing but .....
    If you see a lock icon in the upper right corner of the screen - then the screen orientation is locked.
    Try the side switch above the volume rocker first and see if that unlocks the screen. If that doesn't do it, double tap the home button and swipe to the right and look for the lock icon all the way to the left.
    If the iPad is not responsive and you cannot slid to unlock the screen - try this.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • How can I limit the number of rows returned by a select stat

    How can I limit the number of rows returned by a select
    statement. I have a query where I return the number of stores
    that are located in a given area.. I only want to return the
    first twenty-five stores. In some instances there may be over
    200 stores in a given location.
    I know is SQL 7 that I can set the pagesize to be 25....
    Anything similiar in Oracle 8i?
    null

    Debbie (guest) wrote:
    : Chad Nale (guest) wrote:
    : : How can I limit the number of rows returned by a select
    : : statement. I have a query where I return the number of
    : stores
    : : that are located in a given area.. I only want to return the
    : : first twenty-five stores. In some instances there may be
    : over
    : : 200 stores in a given location.
    : : I know is SQL 7 that I can set the pagesize to be 25....
    : : Anything similiar in Oracle 8i?
    : If you are in Sql*Plus, you could add the statement
    : WHERE rownum <= 25
    : Used together with an appropriate ORDER BY you
    : could get the first 25 stores.
    Watch out. ROWNUM is run before ORDER BY so this would only
    order the 25 selected
    null

  • HT201184 I do not know the sign-in name & password on my eMac to be able to use it. How can I change the password & sign-in in order to use the computer?

    I do not know the sign-in & password to able to use my eMac computer. How can I change the info so I can use it?

    OS X: Changing or resetting an account password

  • How can I match the line thicknesses in different sizes of the same font?

    I'm working on a graphic that includes a handwriting font, and I'd like some text to be larger than others. The obvious issue is that when I make the font larger, the lines also get thicker. Has anyone found a good solution for this problem, other than limiting the design options to large font families with lots of weights? I do employee communications design work for a call center, so purchasing a big font set for internal communications isn't an option.
    I've tried to "hide" some of the larger text's thickness by adding a white stroke to it, or by hiding the font edges with a mask, and I've also tried artificially "bolding" or adding a stroke to the smaller text. They all result in noticably distorted text, particularly around corners, and the results are particularly horrible when using something with texture, like a chalkboard font. I haven't had any better luck in Illustrator, either.
    I'm sure I'm not the only one out there who wants to simulate the look of one person writing in different sizes with the same writing utensil. Beyond writing it myself (my handwriting is ugly), can you think of any solutions I haven't tried?
    Thanks in advance!
    Paula

    Thanks, I'll try the Min/Max and see if that works any better. The final output in this case is pixel based, for use in PowerPoint and in email headers. I often do my text work in Illustrator, but in this case I was trying to simulate writing on a chalkboard, so I started in Photoshop so I could see how it looked against the background as I worked. I actually face this challenge fairly frequently, though.
    The team I design for is virtual, with over 700 people spread across the US and up into Canada. For that reason, I like to use the "hand drawn" look on occasion to bring some warmth and personal touch to the communications, to contrast with all the super-polished "high gloss" graphics they look at all day in their work tools. It's a real challenge to find text and artwork that matches well once scaled to fit my documents, especially since most of the vector-based artwork I find online has already been converted to outlines, so it doesn't retain the same stroke thickness when the images are scaled.
    If anyone out there knows of an illustrator who doesn't convert their sketch-style graphics or fonts/typography to outlines before putting it up for use, either on Shutterstock or on any free site (since those are the ones I can use) I'd love to hear about it!

  • How can I match the colors of two different video clips?

    I have two video clips. One is in black and white and the other in color. Is there a way that I can match the volor clip to the black and white one?

    Hi Steve
    I downloaded a video that is in black and white (pitbull's feel the moment). I want to superimpose videos and pictures so that it looks like my clips were the ones used originally. i was messing around with the hue (from my videos) and managed to get it similar. But is there a way to automatically match the tones and hues of one video so that it can be used on the other?
    thx

  • How can I replace the self-signed certificate on a SL150?

    Hi,
    I would prefer to have our internal CA sign the SSL-certificate for our SL150.
    Is this possible? Where can I find the configuration to generate a request and upload the certificate?
    Thanks,
    /M

    http://h10032.www1.hp.com/ctg/Manual/c01918142.pdf
      Videos from the HP Media Service Library
     http://h20574.www2.hp.com/default.htm?lang=en&cc=U​S&hpappid=psml
     It's probably easier to order a new board as it's separate from the main mother board.

  • Can't see the "plus" sign on calendar and reminders after ios5 update

    Since I have update my iphone 4 I can see the "+" sign on the calendar and also on the reminder app. Also when I go to settings and into mail / calendars the phone screen tends to freeze! I have restored the phone twice but that has not solved the problem.
    Any solutions would be greatly appreciated.
    Was thinking if I want to redownload the ios5 update and reload / restore. Thanks.

    Try:
    - Reset the iOS device. Nothing will be lost       
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync/delete all music and resync
    - Restore from backup. See:                                                
    iOS: How to back up                                                                                     
    - Restore to factory settings/new iOS device.             

  • How can I match the format from a Sony SD Card to work with my DV Pal tapes in FCP 7.3

    Hi, I'm having a Problem editing in the files from a SD Card and mixing it with my DV Pal film in the same project.
    It all seems to be working right through to completing it in DVD Studio Pro, but on looking at the DVD after the most of the film from the card is very bad, particularly if there was movement in the Scene,  I suppose I could describe it as ghosting.  I've tried a lot of different ways around it but with only minor success, any advise would be greatly appreciated.
    Thanks,
    Brendan

    Thanks David for the reply,   When I look at the Info on the Log & Transfer window it gives a number.mpg,
    when I transfer it,  I see it as Apple ProRes 422.   I shot it in PAL & as far as I can remember,
    PAL is progressive.
    Also I shot it it in Std. mode as the other Clips I need to use were filmed IN DV CAM std.
    again thanks
    Brendan

  • How can i put the value of a variable in an SQL statement?

    Hi,
    Can someone please tell me how i can use a variable as part of an sql statement.
    So instead of "SELECT * FROM tablename WHERE username='john'"
    I can put in "SELECT * FROM tablename WHERE username.text"

    What would happen if someone entered "(delete *
    from tablename)" into the username field?The SELECT would fail and the DELETE
    would never run.
    Or am I missing something?Ok, that wasn't valid SQL, so lets change it into valid SQL. What would this do
    "SELECT * FROM tablename WHERE username=" + user
    where user is "blah;DROP TABLE tablename;"
    The SQL would become
    SELECT * FROM tablename WHERE username=blah;DROP TABLE tablename;
    And that would select, and then drop the table
    Kaj
    Message was edited by:
    kajbj

Maybe you are looking for

  • Vibration setting: how to make it vibrate continou...

    Hi, my cyan Lumia 800 (OS 7740, firmware 7720, hardare x.3) vibrates only two short bursts (about 1 sec) each upon receiving a call, but I want it to viabrate as long the ringtone rings. Vibrate is "on", what else can I configure and is this a known

  • Sony PVM 2541 and Premiere CC

    Hello, Im having a problem with Premiere CC. Since the CC version I am no longer able to preview videos on my Sony video screen (its connected via Decklink SDI). I cant find a way in the preferences to switch screen for preview. It was working fine i

  • Evaluation of an ERP System

    Hi All, W.R.T. to following tangible benefits from an ERP systems, in your opinion what should be the way to evaluate the current legacy or Erp and prove the advantages of SAP over it. Empirical or Tangible Benefits from ERP System 1>Inventory Reduct

  • Have to add a i/p pop-up screen in f-28

    Have to add a i/p pop-up screen in f-28 where after i i/p data it have to go back to the same screen i hav called my screen in BTE 1120 . please help me out with the code for only screen or is there any function module which can help me out for calli

  • Premiere Pro CS4, Timeline distorts when editing

    I recently installed my version of PPro CS4 on a new Macbook, and everything runs fine except for one issu Whenever I try to drop something into the timeline, the entire timeline distorts and won't let me see what's on it other than the specific clip