Questions tagged [overlapping-matches]
55 questions
0
votes
1 answer
Split overlapping dates into different records
I am developing a PHP + MySQL application. I have a table which contains start date and end date of periods. Periods can overlap. Example:
ID Start End
1 01/05/2015 31/05/2015
2 01/06/2015 30/06/2015
3 15/06/2015 25/06/2015 (this…

Andy
- 1
- 1
0
votes
1 answer
Sql server 2008 : Query to search for today's date within overlapping dates
I have the above table wherein I need to get NoteIndx matching today's date. Just for testing, assume today is 2013/06/02 (Jun 2,2013) and that would get me two records with noteindx 93105 and 104044.
But the correct value here is 104044 as I…

Anirudh
- 581
- 5
- 14
- 32
0
votes
1 answer
Overlapping ViewFlipper with other components
I have a ViewFlipper, a button and a custom view in one layout. I would like button and custom view to be on top of the viewflipper so that they appear in every layout that is included in the viewflipper. However I can't see anything except…

Nazerke
- 2,098
- 7
- 37
- 57
0
votes
2 answers
Find multiple circles which have common area of overlap in MATLAB
I have two matrices.
Each matrix is of dimension 3 * k and represents k circles with each column in the form of [x y r] where (x,y) is the center of the circle and r is it's radius. So one matrix which has 3 circles is in the form of
[x1 x2 x3; y1…

Agatha Christie
- 13
- 1
- 2
0
votes
2 answers
regex not giving all the possible matches
I need to get all the possible matches for a given regular expression and word in c#. But the Regex.Matches() function is not giving it. For eg.
Regex.Matches("datamatics","[^aeiou]a[^aeiou]")
returns only two matches which are
dat
mat
it is not…

Kumar Rajput
- 3
- 1
0
votes
2 answers
Issues with regex for overlapping matches
In short, I'm trying to match the longest item furthest right in a string that fits this pattern:
[0-9][0-9\s]*(\.|,)\s*[0-9]\s*[0-9]
Consider, for example, the string "abc 1.5 28.00". I want to match "5 28.00".
Using the pattern "as-is", like…

G.S.
- 623
- 6
- 22
-1
votes
1 answer
Remove and update overlapping indexes in array of object in javascript
I have an array of object with overlap indexes.
[
//1st object
{
start: 3,
end: 10
},
//2nd object
{
start: 5,
end: 8
},
//3rd object
{
start: 11,
end: 30
},
//4th object
{
start: 0,
end: 4
…

abinas patra
- 359
- 3
- 21
-1
votes
1 answer
identify min and max values of overlapping ranges from mutiple matches
Given the following three column tab delimited list file, where value 1 and value 2 in each row represents a range in a given match, what is the simplest shell script/command that will identify all overlapping ranges for each match and determine the…

boogiemonks
- 1
- 1
-1
votes
2 answers
Avoid matching the same value twice in string.matches() method in Java
Okay, I'm totally rewriting this question because this works and I want to know why it works.
Suppose I have a number, testNumber with a value of 567.
I want to know if the next two numbers (shouldPassTest and shouldFailTest) the same digits, but in…

Jonathan Martin
- 109
- 8
-2
votes
1 answer
How do I use regexes properly in the matches() function (java)?
I am trying to make a registration form in Java that accepts a string in the form of: ok@ok.ok, right now, I have -
(email.matches("[^a-zA-Z0-9]+")
which I need it to also accept @, _,-,. symbols but am unsure how to add it into the regex shown…

jhehexd
- 1