How to match the wildcard *

Here I have four String type contants: "information", "inherit", "in there", "interfere". Now I want to use another String type contant with wildcard in itself "in*re" to find out all the matched string above. How can I program for that purpose? Can anyone please give me some tips to realize it?

Thank you for your advice.
I have looked through the API document and the wildcard * only represents the times of the same character in "regex", like X*: X, zero or more times. In my case, * could denote any number of any characters. Can this case still be solved through the "java.util.regex"?
Any suggestions are welcome.
Adrian

Similar Messages

  • Automatic creation of customer from BP  - How to match the fields? CVI

    I am trying to create a customer from a BP. I am done all the customizing steps.
    Now I need to match the fields.
    There is an error message with this field KNA1-SPRAS that doenst match
    what should I do?
    I have read this "In particular you have matched the required entry fields. You have to set all fields that are required entry fields in the customer/vendor account as required entry fields in the field selection control for your customer/vendor business partner roles."
    Where do I set these fields and how do I know which fields to set?
    Thank you for your help.

    Hi,
    I am trying to create a customer. I am done all the customizing steps.
    Which steps do you follow to create? Please give me the details. Thanks.
    After customizing, I created the business partner using the BP transaction. In the syncronizationcockit I still have errors messages when I select BP->Customer and then give the BP number. How should I do this correctly. Please if possible a screenshot will be good.
    I have an error message that a field information is missing. I filled the field but still have the same error.
    Thanks.

  • How to match the nth word in a string?

    Hi, when I have a string like
    "AA BBBB CCC DDDDDD EEE FF"
    all words are of the form \w+
    and I'd like to match the nth word, for example the third would be "CCC",
    how can I establish this with just one regular expression?
    Some annotations:
    This is done with Java 1.4, but tools like the string tokenizer are not
    possible (restrictions of the application) We're limited to one regular expression!
    In Perl, one would do it this way:
    This would be the regular expression:
    "[\w+\s+\w+\s+](w+)"
    and with the help of $1, you might match the first paranthesis.
    As I said before, this is no solution here, because we're limited to one
    regular expression
    Another idea for Java Regex would be to define a positive lookahead, like (?<=\w+\s+\w+\s+), but as the width of it is variable, it is not allowed!
    Thanks for your help,
    Heiko Kubidsky

    well, i did another test class
    import java.util.regex.*;
    public class NthMatch {
    public static void main(String[] args) {
      Pattern p = Pattern.compile(
        "(?:\\w+\\s+){" + args[1] + "}(\\w+)(?:\\s.*)?");
      Matcher m = p.matcher(args[0]);
      if (m.matches())
       System.out.println(m.group(1));
      else
       System.out.println("no match");
    }run: java NthMatch "aa bb cc dd" 2
    does that help?
    what kind of framework you have to squeese the regex in?
    what do you want to do with that regex?
    do you want to check if Nth word maches something, or do you want to retriev that Nth string? or are you trying to do anything else?
    your explanation is unfortunatelly not sufficient :(

  • How to match the Pantone colors to the Cinema Display...

    Hi, I need to match the pantone colors to my cinema display, how to make it...could anyone help.
    Thanks!

    Thanks for your response--
    I looked at this adapter:
    http://www.mycableshop.com/sku/ADCHD1506.htm
    However, it says this:
    "The adapter cable allows any VGA monitors to be connected to the new dual-display G4 system with ADC video interface. The VGA monitor can be used as the primary display, or as a second display on G4 that supports dual-monitor support. Compatible with GeForce 4 MX, GeForce 4 Ti, Radeon 7500, and Radeon 9000 Pro."
    My graphics card is a ATI Rage 128 Pro. Will it not work, then?
    What is the possibility of adapting the Cinema Display from DVI to ADC?
    Thanks!

  • How to match the BI Inventory Management reports with MB5B?

    Hi All,
    In BI we have two reports which shows the Quantity, Value and count of the valuated GI and GR movements happened in the inventory at a material-plant level for a given day. Both the reports are built on the cube 0IC_C03(Material Stocks/Movements ). We need to display only those movements which has a value associated with that. Ideally it should match with the R3 report MB5B for stock type "Valuated Stock".
    For example,
    For movement type 311(storage location to storage location) there are no accounting documents associated with that. Still in the data source it has field u201CStock categoryu201D(BSTTYP) as blank, which indicates that it is a valuated stock. And hence that record is displayed in the BI report. But In MB5B there are no entries for that movement type as there is no value associated with that.
    Similarly for movement type 101 (Goods receipt) the stock category, BSTTYP in the data source indicates that it is valuated stock, where as MB5B eliminates those which has no value associated with that.
    This is causing a mismatch between the R/3 MB5B and the BI Reports. Is there any method to match the BI reports with the MB5B report in R3?
    Thanks in advance,
    Alpho

    Hello,
    Please cross check with MM consultant and take the logic of MB5B and implement same in BW Query Level can help you to match the values.
    Thanks.

  • How to match the syllable?

    hi there!
    i'm having problem to match the syllable using unicode..
    as an example, i want to match 2 syllable, sa + ya, using unicode..
    but, when i make a conversion, i couldn't get the right word for the conversion..it suppose to be "saya", but it display wrong word...
    i really need help to solve this problem..
    thank you...

    no ...
    but if u can paste ur code snippet which is giving trouble it might help

  • Text crawl speed: how to match the speeds of many crawls?

    I have 20 bits of text of different lengths (from 20 to 60 words) and I need to make a crawl of each. I want all of the text crawls to move at the same speed right to left, but it appears that I have to lengthen and shorten clips by trial and error to match the speeds. Is this right? Is there an easier way to regulate the speed?
    I'm using Final Cut HD 4.5. I have the BorisFX plug-in.
    Thanks.

    Just do some simple mathematics instead of manually adjusting the actual clip's length on the timeline.
    An example.
    Control click on the text clip with 20 words and check duration. Lets assume it is 8 seconds. Then control click a clip with about 40 words <click>change duration to 12 seconds.
    It should give you the same or very similar speed.
    Rely on numbers rather than guessing clips lengths.
    G.
    PS. Just reading now Zak's post, didn't remember Andy's plugin(Sorry Andy) but let us know if that solves your problem.

  • How to match the width of the choice box's dropdown to the choice box

    Hi there,
    I'm using a ChoiceBox control. The choice box seems to be composed of two parts: the box(displaying the current selection) and a context menu(dropdown). What I find strange is that the dropdown of the choice box(the context menu) has different size than the choice box by default:
    http://manvox.com/javafx1.3/choice-box-dropdown.jpeg
    I can style the choiceBox's box element by modifying the +.choice-box+ CSS selector. I can also style the dropdown using the +.context-menu+ and +.menu-item+ selectors.
    How can I ensure that the dropdown has the same size of it's parent choice box and is aligned to it?

    @alabala: Please, if you can spare a few minutes, can you file a bug report for this at the JavaFX Jira issue tracker here: http://javafx-jira.kenai.com
    If you set the 'project' to 'runtime', and 'component' to controls, it'll end up on my desk and I'll get the owner of the ChoiceBox control to take a look at it.
    Thanks,
    -- Jonathan

  • How to match the charger to the right mac

    Hi,
    Me and my friend got our macbook pro chargers mixed up and not sure who's is who's. Is there a way to find the charger you got with your mac.
    Thanks

    13" MBPs use 60w chargers and 15"/17" MBPs use 85w chargers.  Retina MBPs use Magsafe2 and non-retina MBPs use 'plain'  Magsafe chargers.
    There is no direct connection for a given charger to a specific MBP.
    Hols out for the one that has the least amount of smudges on it. 
    Ciao.

  • How to match a fingerprint template from database ?

    i now can save a fingerprint template from database using this code..
    Dim fingerprintData As MemoryStream = New MemoryStream
    Template.Serialize(fingerprintData)
    fingerprintData.Position = 0
    Dim br As BinaryReader = New BinaryReader(fingerprintData)
    Dim bytes() As Byte = br.ReadBytes(CType(fingerprintData.Length, Int32))
    Dim cmd As SqlCommand = New SqlCommand("INSERT INTO fininger_table VALUES(@FIRSTNAME, @LASTNAME, @FINGERPRINT)", conn)
    cmd.Parameters.Add("FIRSTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxFname.Text
    cmd.Parameters.Add("LASTNAME", SqlDbType.VarChar).Value = CaptureForm.tboxLname.Text
    cmd.Parameters.Add("FINGERPRINT", SqlDbType.Image).Value = bytes
    conn.Open()
    cmd.ExecuteNonQuery()
    conn.Close()
    and i fetch the data when the form is load..
    conn.Open()
    Dim cmd As New SqlCommand("SELECT * FROM Fininger_table", conn)
    Dim rdr As SqlDataReader = cmd.ExecuteReader()
    Dim MemStream As IO.MemoryStream
    Dim fpBytes As Byte()
    While rdr.Read()
    fpBytes = rdr("FINGERPRINT")
    MemStream = New IO.MemoryStream(fpBytes)
    Dim template As New DPFP.Template(MemStream)
    OnTemplate(template)
    ' template.DeSerialize(MemStream)
    End While
    rdr.Close()
    conn.Close()
    and now i'm stuck..i dont know how to match the fingerprint from the database to verify the user..
    plz help me out..tnx in advance
    btw im using a DIGITAL PERSONA FINGERPRINT READER..with the OTW SDK

    Hello My dear Brother 
                    I am zaid Ahmad khan would like to help you and this is the working code please see this and you will have the solution 
    Imports System.Data.SqlClient
    Imports DPFP
    Public Class Form1
        Private WithEvents verifyControl As DPFP.Gui.Verification.VerificationControl
        Private matcher As DPFP.Verification.Verification
        Private matchResult As DPFP.Verification.Verification.Result
        Private allReaderSerial As String = "00000000-0000-0000-0000-000000000000"
        Public template As DPFP.Template
        Private userTemplateColumn As String = "Template"
        Private userIDColumn As String = "ID"
        Dim bytes As Byte()
        Private Sub CreateDPControl(ByRef control As DPFP.Gui.Verification.VerificationControl)
            Try
                control = New DPFP.Gui.Verification.VerificationControl()
                control.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink
                control.Name = "verifyControl"
                control.Location = New System.Drawing.Point(0, 0)
                control.ReaderSerialNumber = "00000000-0000-0000-0000-000000000000"
                control.Visible = True
                control.Enabled = True
                control.BringToFront()
                Me.Controls.Add(control)
            Catch ex As Exception
                MessageBox.Show("exception")
            End Try
        End Sub
        Private Function ConnectString() As String
            Dim connectionString As String
            connectionString = "Server=localhost;database=bs;User ID=sa;Password=123"
            Return connectionString
        End Function
        Private Sub VerifyBiometric_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            matcher = New Verification.Verification()
            matchResult = New Verification.Verification.Result
            CreateDPControl(verifyControl)
        End Sub
        Private Sub verifyControl_OnComplete(ByVal Control As Object, ByVal FeatureSet As DPFP.FeatureSet, ByRef EventHandlerStatus As DPFP.Gui.EventHandlerStatus) Handles verifyControl.OnComplete
            Dim dataSet As DataSet = New DataSet()
            Dim adapter As SqlDataAdapter = New SqlDataAdapter()
            Dim sqlCommand As SqlCommand = New SqlCommand()
            Dim ctr = 0
            Try
                Dim max As Integer = 0
                Dim cn As New SqlConnection(ConnectString())
                cn.Open()
                sqlCommand.CommandText = "Select templateBytes7 from userthumbs where id='1029'"
                sqlCommand.CommandType = CommandType.Text
                sqlCommand.Connection = cn
                Dim lrd As SqlDataReader = sqlCommand.ExecuteReader()
                Dim usr
                While lrd.Read()
                    usr = lrd("templateBytes7")
                End While
                bytes = Nothing
                bytes = usr
                template = New DPFP.Template()
                template.DeSerialize(usr)
                'Perform match
                matcher.Verify(FeatureSet, template, matchResult)
                If matchResult.Verified Then
                    EventHandlerStatus = Gui.EventHandlerStatus.Success
                    MsgBox("Verified!")
                    Me.Hide()
                    MessageBox.Show("Done")
                Else
                    EventHandlerStatus = Gui.EventHandlerStatus.Failure
                    MsgBox("Please Try Again!")
                End If
            Finally
            End Try
        End Sub
        Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        End Sub
    End Class

  • How to get the best colour representation on screen

    Hi there,
    I am trying to get my LCD to most accurately represent colours from my Pantone swatch book. I have a Huey Pro calibration tool to assist in the LCD calibration.
    So, I've calibrated the display as best as I could. It's not a top of the line LCD and the Huey isn't the top of the line colourimeter so I understand that I won't get things absolutely perfect.
    I'm starting with the basics: trying to match the C M Y & K from the swatch book. Figure that's a good place to begin. I'd like to see RGB and CMYK values look as accurate as possible on my display. If I can figure that out, then I guess it's time to understand how to match the Pantone values and the Lab settings and all that jazz.
    My PS Colour Settings are North America General Purpose 2
    RGB: sRGB IEC61966-2.1
    CMYK: US Web Coated (SWOP) v2
    Is there anything else I can be doing to get a better on-screen representation?
    Is this Holy Grail even attainable with my modest setup?
    I'd really value your advice and opinions!
    Thanks!

    Humm could be one of two things...
    If the Display Resolution is off, go to: Apple > System Preferences > Displays > select the Display tab and choose the highest Scaled Resolution in the list.
    If just the Desktop picture is to narrow, go to: Apple > System Preferences > Desktop & Screen Saver > select the Desktop tab and change the Fit to Screen setting to Fill Screen.
    Likewise, I might complain to Verizon because those folks had no business messing with those setting.

  • How to match PR in AP module?

    Fixed Asset purchasing is done by creating a PR and no convertion to PO because our customer doesn't want to do the PO approval in such a situation. Then I have a question that how to match the AP invoice with PR in AP module?
    Does anyone meet such a need?

    Hello,
    I'm not good in Purchasing but look at
    Approve requisition without using any approval hierarchy
    especially
    "Hi
    If you define Approval Rules for a user giving him/ her enough approval rights so that the requisition created gets auto approved
    To do so create the Approval Authorization Rule and assign it to the job/ position of the user in question using the Assign Approval Groups form.
    Regards
    Akhil"
    Maybe you should post your question in Procurement You will get answer faster:)
    Regards,
    Luko

  • How to synchronize the FieldPoint time with my computer time?

    When I using MAX to read the values from my FieldPoint cFP-1804 module, there is and timestamp generated for every measurement, but it does not match my PC's system time. How to synchronize the FieldPoint time with my windows PC?
    I found a thread on the forum regarding this problem (http://digital.ni.com/public.nsf/allkb/C4E56AD6450FC5FD86256DFF0007FF01), it ask me to select the Time Zone on the System Setting tab, but I didn't find any System Setting tab and Time Zone setting in my MAX screen. (MAX version4.4)
    I'm using the cFP-1804 without embedded CPU module, I'm using asp.net, measurement studio to link with the cFP-1804, not by using Labview. Does cFP-1804 have a Time Server function? Please tell me how to match the FieldPoint time with my PC. 
    Thanks

    Hi Presario2100,
    In order to obtain an updated timestamp with each FieldPoint Read, you should
    use a Flat Sequence structure.  In the same frame as the
    FieldPoint Read, use a Get Date/Time In
    Seconds node.
    The program obtains a fresh Timestamp each time the FieldPoint Read VI is
    called.
    I hope this helps.
    Message Edited by Pie56694 on 08-15-2008 05:58 PM
    Attachments:
    TSUpdates.jpg ‏38 KB
    FlatSequence.jpg ‏54 KB

  • How do I adjust the tempo or BPM of a sample to match the song I'm working on?

    Hi, the title pretty much says it all.
    I am working on a tune in audition CS6, however I am aware that audition is not intended for music production, but I already have the beat, bass line and melody laid down in a multi-track session, now I have download a few audio samples and acapellas that I want to use on my tune but do not know how to go about matching the tempo so that my audio sample fits like a glove over my original tune.
    Please help.

    There are two things you need to know, really. The first is that when you import a clip into multitrack view, by default stretching is off. But if you grab the little triangle at either the top left or top right of a clip, you can stretch it anyway - this turns stretching for the clip on automatically. To get things right initially, you need to position the clip at the correct start point, and stretch or shrink the end point so that it finishes where you want it to. The second thing is that the 'slip' tool is sometimes useful here as well. This leaves your clip window exactly where it is, and lets you slide the clip around within it, so you can, if you want, 'push' the beat with your clip - or of course the complete opposite.
    By default, clip stretching is in real time, but the chances are that when you've got it in the right place you'll want to improve the quality. So  you right-click on your clip, select the stretching options and set it to render it, rather than run in real-time mode. This takes longer, but sounds miles better.
    Once you get used to it, these operations are pretty easy to carry out.

  • How to add the Match code object for the requisitioner field in TCODE ME51N

    Hi,
    How to add the search help (Match code object) for the requisitioner field in transaction ME51N.
    Please  do the needful to me.
    Regards
    Rajesh

    don't you think that posting your question to a microsoft developer site would be more efficient?
    regards,
    anton

Maybe you are looking for

  • How to create two level dynamic list using JSP , Java Script and Oracle

    I am new in JSP. And i am facing problem in creating two level dynamic list using JSP ,Java Script where the listdata will come from Oracle 10g express edition database. Is there any easy way in JSP that is available on in ASP.NET. Plz response with

  • Upgrading but not installing Flash with MSI

    I have an environment of some 600 PCs running XP. A few have Flash installed, most do not. Those that have Flash installed are a variety of versions. It's my intent to perform a Flash install using MSI and GPO, and that's (mostly) tested and working.

  • Flash Media Online

    I've been searching the web for a media player my website quite a while now, however I haven't found anything suitable. I'm not familiar with Flash's script, however it seems to me that I'm going to have to create my own media player to support both

  • Selection of records in TABLE CONTROL.

    hello friends, this is venkat. I have been using a table contrlo to display the contents of a custom table. my table control can display 10 records in one shot and my custom table had more than that. vertical scroll bar has been working properly so i

  • Photoshop trial download problems

    everytime i try to download photoshop trial i cannot get past adobe AIR? i click accept an the download doesnt continue can anyone help?