Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » Java
Showing page 1 of 2 (17 total posts)
  • A couple of java regex that im having trouble with..

    Hi All,  Programming language is java, ide is eclipse..  The String is:  Armagh 1-11 | Dublin 2-12  Firstly I want to get jus the "Armagh" string, the the "1", the the "11", then the "Dublin", then the "2", then the "12". The strings will be subject to change so I ...
    Posted to Construction Advice (Forum) by Joe Smith on May 25, 2011
  • Remove unwanted spaces with regex

    Hi, first of all my experience with regex are very low. But now I have problem which seems to be suitable for handling with regular expressions. My problem is the following: I have a string which can start with some tab characters (0-n times) followed by some spaces (0-n times) and then some other user data (beginning with a non space). I want ...
    Posted to Construction Advice (Forum) by martin_de on March 7, 2011
  • Another regex problem

    I have one regex in .net code to catch all the literals ( for Java ) .but it seems not to work in Java code to catch String -literals.Regex is  p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco}(""""|""[\s\S]*?[^\]"")It doesnt work in simple programs, or online testers or even my project.My ...
    Posted to Platform Differences (Forum) by Misha79 on February 14, 2011
  • Regular Exp in C# and Java.

    Hi All I am working on porting a code from .net to Java. and its highly using reg expressions.I dont know .net and i have to recognize the purpose and meaning of regexs written to create same in java. There is one regex in C# to prevent HTml tags :(?<!<[^>]*) If anyone can help me find its equivalent in Java ,it would ...
    Posted to Platform Differences (Forum) by Misha79 on February 9, 2011
  • Equivalent of Regex Class (C#) in Java

    I am working on some code development in Java from C#. There is a method that returns Regex class-type in C# and figured that its a system class in System.Text.RegularExpressions.  Not much idea about C#. To simulate same thing in Java is there any Regex Class  that represents a regular epxression.
    Posted to Platform Differences (Forum) by Misha79 on February 8, 2011
  • java regular expression to search block of text/string/word in a paragraph ?

    Hi , i am new to java regular expression. Consider the follwoing paragraph : The Internet is a global system of interconnected computer networks that use the standardized Internet Protocol Suite (TCP/IP) to serve billions of users worldwide. It is a network of networks that consists of millions of private and public, academic, business, and ...
    Posted to Construction Advice (Forum) by sidharth on November 10, 2009
  • help needed to understand why my regex is working !!!

    hello all i am playing with one regular expression using Java programming language (JDK 1.6) and i am unable to understand how (rather why!) it works. here is my code String text = "I am also known as John,PP)"; String pattern = "John([\\s\\u00A0)\\}\\]\"'-/\\\\.:;!'$?]|$)";   Matcher matcher = ...
    Posted to Construction Advice (Forum) by preetam_pict on July 24, 2009
  • Regular expression is not storing the value from an SQL query

    Hi All, I am using Jmeter tool to test a soap request in a thread group and parallely I have added JDBC query to verify the results. I am trying to automate the above mentioned process. I have added a Regular Expression Extractor to the soap request and I have added a Response Assertion to the JDBC request. Now I have the set the Regular ...
    Posted to Construction Advice (Forum) by Arunregex on November 11, 2008
  • Extracting from an already-extracted pattern

    In a Java environment, I want to build one or more patterns that enable me to get two 'views' from the same piece of matched text.  For example, if I have a numeric pattern like '1234', I want to build 'view-2' and 'view-4' versions of the match.  'view-2' would return '12' and ...
    Posted to Construction Advice (Forum) by brwarn on June 25, 2008
  • Extract Number, Then Throw Away Trailing Characters/Zeros

    In a Java environment, how do I convert a pattern like 'ABC: 1230-00' to '1230'?  The following pattern I believe will work to get '1230-00', but I can't figure out how to remove the '-00' part.  Thanks. Remove 'ABC:' part: (?<=ABC:?\s{0,2})\\d{2}00-00 
    Posted to Construction Advice (Forum) by brwarn on June 25, 2008
1 2 Next >