0
votes
1answer
14 views

Java RegEX and group

I need to parse log files and get some values to variable. The log file will have a string String logStr = "21:19:03 -[ 8b4]- ERROR - Jhy AlarmOccure::OnAdd - Updated existing alarm: ID ...
0
votes
4answers
68 views

How do I split regex this string

Im trying to understand how would regex work in this case of split/Pattern.compile This is the entire string: "#[flowVars['variable_name']]" The string i need to extract would be "variable_name" ...
0
votes
0answers
28 views

Java RegEX to extract Xpath from a statement

I have a string which is a statement (if-the-else or any other standard statement) with xpaths. I want to extract the xpaths from that statement using Java Regular expression. Could you please help to ...
-6
votes
3answers
37 views

regex expression which allows only alphabets, Hyphens , apostrophes, and period is allowed [on hold]

I am searching for regular expression which allows only which allows only alphabets, Hyphens , apostrophes, and period.
1
vote
2answers
52 views

RegEx - Java - Matching Strings (012|123|234|345|456|567|678|789|890)

I am working on password enhancement and client wants a password that does not have consecutive letters ie: 123, 234. I have figured out that you can declare strings that you want to match in regex ...
0
votes
3answers
29 views

Java regex for specific case

I am trying to reformat a string to my desired format. I have been trying to figure this out for a while but I can't think of any elegant solution using regexs. I have come up with a solution using ...
0
votes
1answer
29 views

Regex command not executing properly

I am trying to take in a line from a text file and remove all punctuation, such as commas, periods, single quotes, double quotes, etc. and set the string to be lowercase. The code that I am using is: ...
1
vote
2answers
31 views

Making group constraints in Regex in android

So I have this String: String articleContent = "dfgh{jdf%g{%qf234ad%22!#$56a%}vzsams{%3%45%}678456{78"; I want to remove everything between {% %} So result would be something like : ...
0
votes
4answers
65 views

Get URL from string with text

I have a bunch of strings like this: Some text, bla-bla http://www.easypolls.net/poll.html?p=51e5a300e4b084575d8568bb#.UeWjBcCzaaA.twitter And I need to parse this String to two: Some text, ...
0
votes
3answers
57 views

Split by space but not newline

I am trying to convert all links in a given string to clickable a tags using the following code : String [] parts = comment.split("\\s"); String newComment=null; for( String item : parts ) try { ...
2
votes
3answers
59 views

simple Java Regex read between two

So I have a source page in text and I know it contains a link that is formatted like this img src="http://someurl and ends with -t1 I am trying to extract whatever is between img src and -t1 . It ...
0
votes
2answers
54 views

Can someone explain to me how this regex works? (Total novice here) [on hold]

I got this regex from a member on this site and decided to play with it till I got what I wanted. "(\\d+\\.\\d$)", "$10" It seems to work. My job is to convert any value like 12.3 to 12.30 or 1.0 ...
0
votes
4answers
34 views

Regex in java to find if a String is in the format of a decimal number with a trailing zero

I am reading a list of Strings, some of which are in the form of decimals and comapring them against another. Sadly, in the first list, I find that all decimal terms aka all the strings have an extra ...
2
votes
1answer
49 views

How to force fail a java regex?

In java, you can text a regex by doing "mystring".matches("myregex") But is there a certain regex you can use, that will make matches function evaluate to a false? It needs to work for all cases ...
-2
votes
2answers
38 views

Splitting up string using regex with minimal amounts of delimeters [on hold]

I have run into a regex problem for the second time today that I cannot solve. This one I am not even sure can be solved with a regular expression. My input string is: 29 - Arizona Diamondbacks 15 - ...

1 2 3 4 5 422
15 30 50 per page