0
votes
0answers
12 views

HQL: Dynamically adding JOINS and WHERE parts (ANTLR, regex or String)

I've to write HQL based engine that patch HQL queries on the fly dynamically add joins and where parts (to prevent questions - I must use HQL, not criteria API). E.g. inject to HQL from Object a ...
0
votes
2answers
55 views

Extracting server names from emails using Java

I want to extract the server name from a string using Substring. I am not sure if I should iterate a loop or with StringTokenizer, indexof, lastindex or what ever. Basic requirement is, I should ...
0
votes
4answers
31 views

Exclusion using java regex with more than one exclusion field

Sorry guys, Ive googled and still cant get my code to work. Not exactly a whiz with java (yet, but give me time :-) ). I have an xml document that i am using a DOM parser to read, extract the class ...
0
votes
2answers
57 views

How to parse name=value^^name=value^^name=value

My Question: It's very specific. I'm trying to think of the easiest way to parse the following text: ...
0
votes
2answers
39 views

File/Scanner simple parsing issues

Given a File and a Scanner object, File simpleFile = ranFi.getSelectedFile(); Scanner text = new Scanner(simpleFile); and these two commonplace statements: while(text.hasNext()) { ...
0
votes
1answer
41 views

Regex Pattern using Perl5Matcher

I am trying to write the pattern matcher for the below string show int sh 1/1/06 SHDSL 1/1/6 Description 3599979 Constellation (bits/baud) 30 I need to get the value of ...
0
votes
3answers
55 views

Matching String regular expression in java?

I have below lines of java code. String string1 = "SAMPLE STRING"; String string2 = "SAMPLE*"; string2 = string2.replaceAll("\\*",".*").trim().toUpperCase(); ...
-1
votes
1answer
62 views

Stackoverflow for Uppercase regex

I have got a huge issue. I run for one validation in a catastrophic backtracing (http://www.regular-expressions.info/catastrophic.html). But I have a hard time figuring out why. Maybe some one has an ...
1
vote
2answers
33 views

Regex to remove last word in String + additional characters

I am getting a String from a server and I have to use a regular expression to parse it. I know how I would do it using String functions (String.split and the likes), but not with regexes, which is in ...
0
votes
2answers
44 views

Java RegEx Performance with Pattern.CASE_INSENSITIVE

I got a pretty simple regular expression I am using %%(products?)%% Now I want it to be able to match both products? and Products?. The obvious answer is to use the CASE_INSENSITIVE tag when ...
0
votes
3answers
63 views

Matching any character in regex?

I have a state machine which is capable of matching the comments. So it can handle : /* /* */ */ But I bogged down of skipping the contents that are inside the comment lines. Currently my ...
2
votes
1answer
56 views

Regex YouTube IFRAME [closed]

Possible Duplicate: How to parse and process HTML with PHP? I want to publish an app for android (wordpress blog). The app displays also some YouTube videos. I need a method to replace ...
0
votes
3answers
30 views

Matching the identifiers with strings, digits and _

[a-zA-Z]_*[a-zA-Z0-9]* which I'm aiming for to match : astring_something; helloall90 but not : Astring _helloall My regex is protecting me with the identifiers should start with small case ...
3
votes
3answers
40 views

Regex to parse strings that might or might not be delimited by ; into several groups

I have a case where I need to parse a string into several groups depending on a criteria For example the below; 01%3A%35r%07%01P%88%00;WAP_GPRS should be 2 groups %3A%35r%07%01P%88%00 WAP_GPRS ...
1
vote
1answer
45 views

Parsing Java dates with truncated timezone information

Consider the following date string 2012-10-01 01:02:03.004+0500 This is recognized in Java using the following SimpleDateFormat pattern: yyyy-MM-dd HH:mm:ss.SSSZ If, however, the timezone ...

1 2 3 4 5 283
15 30 50 per page