Skip to main content
Best practices
2 votes
2 replies
95 views

I'm doing text search with user entered queries against multiple sources documents. The user can enter 16 MB or 16MB and the document can contain one or the other. I could not make it with pure text ...
Clodoaldo Pinto's user avatar
Advice
2 votes
11 replies
190 views

I need to construct a regex given an integer n that matches any partition of n with a leading +. For example, if n=10, it should match +10, +9+1, +1+9, +1+8+1 etc. Since there are only finitely many ...
nonhuman's user avatar
  • 140
0 votes
2 answers
82 views

I use Jinja2 and mixhtml for validating length of the input from the user. From my app.py two cons USER_USERNAME_MIN = 2 USER_USERNAME_MAX = 20 But I'm not sure how to place them into the input ...
ktj_jcbsn's user avatar
Best practices
0 votes
18 replies
372 views

I often struggle to decide which regex pattern fits a requirement. How do experienced programmers approach designing regex? Do they memorize common patterns, build them step by step, or rely on ...
Suhail T's user avatar
0 votes
3 answers
135 views

This will be used in a Classic ASP (VBScript) project. I am trying to find the words that are NOT in line with a starting single quote. Regex example of finding all words. (\b(CreateObject|Set|Open)\b)...
CodingEE's user avatar
  • 341
4 votes
4 answers
230 views

I would like to use a Perl one-liner to modify numeric values in a text file. My data are stored in a text file: 0, 0, (1.263566e+02, -5.062154e+02) 0, 1, (1.069488e+02, -1.636887e+02) 0, 2, (-2....
mabalenk's user avatar
  • 1,095
2 votes
1 answer
89 views

I want to use a regular expression in Mulesoft Dataweave and substitute some values by using variables. I have this code which excecutes fine in Dataweave: "1000000087" replace /^(.{3}).(.{6}...
Ben's user avatar
  • 864
1 vote
2 answers
207 views

We have a capture group of Z, and we want to display this capture group X number of times using regex in PHP. I can not find a working syntax for this. For example: This captures the "Z" 5 ...
Mm-Art-In's user avatar
  • 23.1k
6 votes
2 answers
110 views

I have a regex where a negative lookbehind and an optional group is producing a match when I'm not expecting it to. There appears to be something about their interaction that I am not understanding, ...
vr8ce's user avatar
  • 676
Advice
1 vote
6 replies
77 views

How to match any amount of Unicode characters (letters, numbers, surrogate pairs) in regex: 😆 ẘ😆 😆😆 ẘaሴ abc123 I am looking for an equivalent to /^(\[a-zA-Z0-9\]+$)/i that finds ASCII.
user3443063's user avatar
  • 1,727
Best practices
2 votes
4 replies
61 views

I need to convert informal Persian user input that represents a monetary amount into a single integer value in rials in python. The input is free-form and may include: Persian number words (e.g. یک, ...
BCompl's user avatar
  • 43
1 vote
0 answers
107 views

I have a generic function to always query my mongo collection with a limit and get the entire result in a single batch. I noticed the queries with Contains and StartWith were taking longer than ...
Carlos Siestrup's user avatar
0 votes
1 answer
118 views

I am working with older weather data files with a 3-line header. The first line identifies the station, the second provides column names, and the third gives the column units. The problem is that ...
user8229029's user avatar
  • 1,263
0 votes
2 answers
138 views

Invoice contains services and Subtotal rows: Internet_Usage 1058 187822_MB 1 000 000 PhoneCalls 48 02:42:39 2 000 000 Subtotal 3 302 5998 Parking 8 4 000 000 Subtotal 4 302 5998 sum is third number ...
Andrus's user avatar
  • 28.3k
1 vote
4 answers
106 views

%if %sysfunc(prxmatch(/^\("([A-Za-z])"\)$/, %str(&names))) = 0 and %upcase(&stringC) = N %then %do; %put ERROR: Please format as such ("obesity","diabetes&...
Health_Code13's user avatar

15 30 50 per page
1
2 3 4 5
17409