Java Regex Problem -


I have a string that I am trying to remove from the pattern, the string is as follows:

  (ELT2N (ELTOK wpSA910 wpSA909 wpSA908 wpSA474))  

The problem is, I do not know how much effort is being made in the string of strings starting with 'wp' Search, however, I want to remove them all by using a statement. I am currently using the pattern below:

  personal last static string STARS_LINE_PATTERN = "\\ (\\ s +? (\\ w +?) \\ s +? \\ (\\ s + (\ \ w +) \\ s + (\\ w + \\ s ??) {1,} \\ s + \\) \\ s + \\) "???  

The pattern matches the string and 'ELT2N' and 'ELTOK' are returning the string, but 'wp' is not returning the prefixel string.

thanks

Simon

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -