Questions tagged [multiple-matches]

70 questions
1
vote
1 answer

VBA multiple matches within one string using regular expressions execute method

I'm trying to match experience levels for various positions based on 1. Degree 2. Years of Experience. The pattern is fairly simple (example: "BS/5" would be a bachelors of science with 5 years of experience. I also have entries that follow this…
user1902208
  • 47
  • 1
  • 3
  • 8
1
vote
1 answer

preg_match_all multiple matches and pattern for text between html text

I am using: preg_match_all("/(.*):\s(.*)\n/i", $email, $matches); to get any 'From:' or 'subject:' etc. Which is all good except that my message doesn't come in as "MESSAGE:". it comes in the $matches array as [1][18] as below: < HTML> <…
Jonathan Scialpi
  • 771
  • 2
  • 11
  • 32
1
vote
0 answers

Using cv.ComputeCorrespondEpilines() in python

I have two images of the same object taken at different views. My objective is to find the matching keypoints from the two images. Then I want to select keypoints from one image and draw the corresponding epipolar lines in the other image. I am…
Koustav Ghosal
  • 504
  • 1
  • 5
  • 16
1
vote
1 answer

Conditional highlight row when there are matches

In Excel, I want to add a gradient highlight by row when the text changes in a given cell, with conditional formatting. I have a list of ~1k account names, a lot of which are the same, and I have them all sorted alphabetically. I'd like to set…
1
vote
1 answer

Using RegEx to search a table for missing information doesn't extract all matching values

I am a little new to VBA, and I did try searching the forums for this topic but I am not sure I used the right words to search. Here is my question: I am using VBA to extract missing information with regexp. Say I have a table with text which…
0
votes
2 answers

Perl - multiple matches on same line with alternation

I need to extract multiple matches for a string on a single line. The line looks something like this: ./staticRoutes.10.10.30_VC;./staticRoutes.10.10.40_FEEDS I need to extract each filename and put it in some @array. The file name on the line is…
Wilko
  • 289
  • 1
  • 4
  • 14
0
votes
0 answers

Creating a new data frame 3 based of partially matching values between data frame 1 and data frame 2 (error due to more than 1 match)

I'm trying to do the following and running into an error due to more than one matching value: My aim is to search values in df2 for partial matches to values from df1, and if a match, add the matching phrase, plus the corresponding column 2 value,…
t-monny
  • 1
  • 1
0
votes
0 answers

i did a comparison between two data frames by using Compare function and i wanted the output into excel

i incurred with the problem "output_data.to_excel(Deliverable)". Please check the code. ``output_data = datacompy.Compare(data_to_compare_1, data_to_compare_2, join_columns='Project Name', df1_name='Original',…
0
votes
1 answer

Specifying word boundaries for multiple string replacement with regex?

I'm trying to mask city names in a list of texts using 'PAddress' tags. To do this, I borrowed thejonny's solution here for how to perform multiple regex substitutions using a dictionary with regex expressions as keys. In my implementation, the…
0
votes
0 answers

Regex search all matches without discarding previously matched items

if I have a string "2A3" and I need to extract all combinations of digit followed by letter AND letter followed by digit so this should return 2A and A3 i tried \d[A-Z]|[A-Z]\d but it returns only 1 combination How to fix this ?
0
votes
0 answers

How to match of similiar color

~~How to match a similar color to white using percentage~~
0
votes
1 answer

I'm looking for Regular expressions to exclude a specific substring from a match

Basically I have these strings and I'm programming on Python 3.9 : 'P425-TK-1501' 'P425-UN-1840' 'P900-TP-1001' What if I want to match each of these strings EXCEPT the one with TP (P900-TP-1001). As you can see, my challenge here was to INCLUDE…
Jeza
  • 13
  • 3
0
votes
0 answers

Is there a way of checking for multiple string sequences with String.matches in Java?

I want to look for any of the following sequences: either one of * - / + followed by a * + / for example: 4+*2 is something I am looking for. 4+5/2 is not if (combinedArray.matches("[-*+/][*+/]")) { ...code } I'd be happy to know what I did…
shaharW
  • 11
  • 1
0
votes
0 answers

Multiple Regex Matches in different Documents of the same type

So i have a lot of different Documents. And alot of the Same Type of content. I need to get data out of every document, the problem now is: I have multiple Documents of the Same Type, like Multiple applications, so now i need a Amount like a Price…
Eric
  • 1
0
votes
0 answers

Assign group numbers across all combinations in two columns

I have used pairwise cosine similarity to compare a bunch of company names and I have all the pairwise matches. I need to assign group numbers that take into account all the combinations, rather than just the first column. Some examples I found that…
Barndog34
  • 1
  • 1