Skip to main content
Filter by
Sorted by
Tagged with
2 votes
2 answers
235 views

I'm working on a text to speech project, and I don't know how to handle US phone numbers. All phone numbers are in this format: 123-456-7890 I would like it to be converted to this: one two three, ...
Brian Schultz's user avatar
4 votes
5 answers
202 views

I have an array with all German telephone area codes that is 5266 items long and looks like this: $area_codes = array( '015019', '015020', '01511', '01512', '01514', '01515', ...
Ben's user avatar
  • 821
0 votes
2 answers
76 views

Import table create table import ( articleNumber c(20) primary key, material char(70) ); insert into import values ('TEST', 'Main fabric: 50% Organic Cotton, 49% Cotton, 1% Elastane' ) ...
Andrus's user avatar
  • 28.2k
0 votes
1 answer
105 views

I have a problem with a DataStage Parallel Job that doesn't parse strings properly. I have a csv file, with two columns containing json-shaped strings. The job reads it with a Sequential File stage, ...
ennezetaqu's user avatar
0 votes
1 answer
140 views

I am mapping HL7 messages into JSON and came a across a scenario that I am unsure of. I need to convert OBX segments, like the below: OBX|1|CE|2643^MED LIST&PRESCRIBED MEDICATIONS^||VYVANSE`...
RNG2555's user avatar
  • 29
-1 votes
2 answers
414 views

How to use base SQL to parse a very, very long string into many columns by a delimiter? I’ve been through a few posts (here for example, and here or here) on parsing into separate columns, rows, et ...
chriseshleman's user avatar
-3 votes
1 answer
85 views

date_str = "2024-04-19 15:30:00" datetime_obj = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S") I attempted to convert a string to a datetime object using the datetime.strptime() ...
Manisha Chintakindi's user avatar
0 votes
1 answer
44 views

Can you remove leading-and-lagging characters-and-substrings from a string without using RegEx-and/or-Custom-Code? For example, I want to remove leading https:// and lagging / (backslashes). I can ...
Zach's user avatar
  • 765
0 votes
0 answers
89 views

I am developing a Go application that interacts with an anime website to download and play episodes. The application should handle both regular series with numbered episodes and movies/OVAs that do ...
killerbyte's user avatar
1 vote
1 answer
177 views

this is my code. I am working on use code detected a bunch of text files in a folder and then string parse the data output as csv files. Could you please give me some hint on how to do this? I am hard ...
mm mm's user avatar
  • 13
0 votes
1 answer
441 views

I get some field in mssql which contain uuid like: root://Item/Item//4296d6c9-3cc4-3d21-af4f-0cd4cdfbf31b/15/11 And I need to retrieve UUID from such string. It can change, and be like root://Item/...
Valeriy K.'s user avatar
  • 2,914
1 vote
2 answers
506 views

To make things clearer and easier, I have a method which has 1 changing parameter. The imported string contains text and text formatting options, the method should recognize the closing tags (always &...
hujxjuh's user avatar
  • 11
1 vote
2 answers
236 views

In other languages besides Perl, if I want to parse a string representing a number in a weird, non-standard base (not necessarily the normal binary (2), octal (8), decimal (10), or hexadecimal (16) ...
ShadowRanger's user avatar
1 vote
0 answers
61 views

std::format serves me well as a replacement of C-style std::sprintf. I'm not yet aware of any similar counterpart for string parsing. Is there a similar thing proposed for C++? I want to use it in ...
Lingxi's user avatar
  • 15.1k
0 votes
0 answers
322 views

Minimum reproducible example below, with the dependency: <dependency> <groupId>it.unimi.dsi</groupId> <artifactId>fastutil</artifactId> <version>8.5.12&...
seinecle's user avatar
  • 11k
0 votes
1 answer
906 views

I am looking for a nuget package which could help me to parse a string to a logical condition in C#. I have a configuration file in json, where users can configure the logic as follows. "...
Harshani's user avatar
  • 679
-3 votes
1 answer
463 views

I have a core project that stores static data, I use it in the data preoctc and I get this error System.TypeInitializationException: 'The type initializer for 'ERP.Core.Constants.CoreDefaultValues' ...
hans fridrech's user avatar
0 votes
2 answers
115 views

Is there a standard way in JavaScript to easily compare two numbers where one or both can be in the form of e.g. '32k'. For example: '32k' > 310 '2.5k' > 450 300 > 200 '2.5m' > '2.5k' So ...
E Shindler's user avatar
0 votes
2 answers
808 views

I have a yaml config, and I want to replace one of the fields with a new value? Here is an example of the yaml config: application: "app_name" pipeline: "app-pipeline" parameters: ...
Riley Hun's user avatar
  • 2,831
0 votes
1 answer
291 views

I would like to extract integers from strings from a cell array in Matlab. Each string contains 1 or 2 integers formatted as shown below. Each number can be one or two digits. I would like to convert ...
Ben's user avatar
  • 3
0 votes
1 answer
87 views

I'm trying to parse messages I receive using AT+CMGL command. My main interest is to get the 15 digit number from the message and store it in a table. Here's an example of the data the I receive : +...
LaRb's user avatar
  • 13
-1 votes
1 answer
55 views

#!/bin/bash echo "Digite o IP" read ip iod= snmpwalk -v2c -c public "$ip":161 .1.3.6.1.2.1.1.5 echo "$iod" OUTPUT iso.3.6.1.2.1.1.5.0 = STRING: "Name" I ...
LuizNFBR's user avatar
0 votes
1 answer
68 views

I have below string as input string input = "{A.0a,100,0002_VL}{=}{A.0a,0400,0001_VL}{+}{A.0a,0410,0002_VL}{+}{A.0a,0420,0003_VL}" I want below output as string array string[] output ...
Paresh Dehadray's user avatar
0 votes
5 answers
1k views

I'm trying to parse strings that look something like this: abc***********xyz into a slice (or 2 variables) of "abc" and "xyz", removing all the asterisks. The number of * can be ...
Mitch's user avatar
  • 39
0 votes
1 answer
120 views

I have a several files with contents as such. file01.txt $ cat file01.txt 0 0.499594 0.154888 0.094968 0.156027 4 0.114448 0.101337 0.113636 0.035701 1 0.173701 0.154888 0.235390 0.068758 3 0.397727 0....
everestial's user avatar
  • 7,315
0 votes
0 answers
76 views

I found an edge case for enum values and want to know whether there is a solution for that problem in .net5 I´ve got the following enum: public enum SomeEnum : ushort { FirstValue = 0x9D80, ...
Felix Arnold's user avatar
1 vote
1 answer
68 views

I have the following string: /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -...
Nima shiri's user avatar
1 vote
1 answer
174 views

In the Julia REPL, if I want to type the α character, what I would do is: \alpha[TAB] which returns the Greek letter, what I would like to do/know if there is a way to emulate this behavior via a ...
AGawish's user avatar
  • 98
0 votes
3 answers
142 views

I'm running Python 3.6.8. I need to sum values that appear in a log file. The line may contain 1 to 14 {index,value} pairs; a typical line for 8 values is in the code below(variable called 'log_line')....
Crustater Rocks's user avatar
1 vote
2 answers
496 views

I want to use recursion in order to collapse the overridden add() methods in the code and allow the user to provide any number of terms. I've made a couple of changes to my code, but I'm not getting ...
Sean's user avatar
  • 11
0 votes
1 answer
500 views

I use the '/' special character to split each word in the text file. The code output is as follows: Mariam / AI / DS / ML
 Steeve / DM / CO / DBMS / ML Peter / DS / CO / MDS / ML Stella / AI / DS ...
suchi's user avatar
  • 1
0 votes
2 answers
120 views

Hil All, I have a table , count is about 200M. It has a column which contains data separated by '~'. I want to parse it. e.g: Column1 A~B~C~D~E~F Result : Column_new1 A~C~E I just want to skip 2,4,6,...
user3646666's user avatar
0 votes
1 answer
876 views

Imagine a method accepting 2 string arguments: public int Method(string expression, string variables) { ... } "expression" is expected to be a math. expression (e.g. "1 + 2") that ...
David Oganov's user avatar
  • 1,524
1 vote
1 answer
2k views

I want to parse the actual payload from the output of AT commands. For instance: in the example below, I'd want to read only "2021/11/16,11:12:14-32,0" AT+QLTS=1 // ...
xyf's user avatar
  • 713
1 vote
3 answers
84 views

What I want the code below to do is loop through the $check_query array, find all the values that contain the word standard and push them into an array. I'd like to also do this for the strings that ...
monsaic123's user avatar
0 votes
3 answers
3k views

I'm trying to parse postgres db credentials, the format is as follows: postgres://usernname:password@hostaddress:port/databasename I'm calling a method which returns these credentials in the form of ...
Shavaiz Safdar's user avatar
1 vote
3 answers
3k views

Currently using str.split(',') on a string and passing it into an array (also simultaneously removing next lines and " from the string). The string looks like this: let array = []; const string =...
F. Certainly.'s user avatar
-1 votes
1 answer
180 views

I have an array that describes a list of auto parts (Swift/IOS,array already in such structure arrived from other source.): let parts = [ "Wheel = 230$", "Door = 200$", ...
Asbjorn Rasen's user avatar
-1 votes
1 answer
266 views

I have this string that i scraped from an unversity website. I want to parse it into a table where each row would consist of strings before and after a colon,":". This is the string. '...
pysolver33's user avatar
4 votes
1 answer
4k views

I have a string in CMake which I got somehow, in a variable MYVAR. I want to check whether that string is an integral number - possibly with whitespace. I have an ugly way to do it: string(REGEX MATCH ...
einpoklum's user avatar
  • 137k
0 votes
1 answer
150 views

I am taking a summer course in computer science, and I get assigned two projects a week, so bear with me if I'm getting some terminology wrong. This week, I was able to get the first one done, but not ...
pa_dead's user avatar
0 votes
1 answer
2k views

I have address data in R in multiple address formats and would like to parse to at least significant address parts so I can use address to merge multiple datasets. However since address can be in ...
data1's user avatar
  • 9
-1 votes
1 answer
144 views

I am creating args parser from a string. I have interface for defining args names and default values interface IargsDef { name: string; default?: string; } What I want is for intellisense(...
Ryner's user avatar
  • 3
-1 votes
1 answer
771 views

I'm calling an API which gives me the sunrise time of specific cities I request. The issue is that when the sunrise is before 10 am I get it in the format, for example, '9:10 am'. This messes up my ...
pentaaax's user avatar
1 vote
1 answer
2k views

I'm working on an html/js project in which I'm trying to pull two strings from my html script, send them over to js and parse them into their variable types in a way similar to typeof. For example, &...
ArchersCat's user avatar
1 vote
2 answers
775 views

I am using Python 3.7 and I am trying to extract some paragraph from some text files using regex. Here is a sample of the txt file content. AREA: OMBEYI MARKET, ST. RITA RAMULA DATE: Thursday 25.03....
Kimkykie's user avatar
0 votes
1 answer
1k views

the user returns a string where is parse to apply the filter in sqlalchemy. but the numbers of parameters are unknown. eg: def fun_name(user_id, value): return db.query(table) .filter(or_(...
Jagesh Maharjan's user avatar
-1 votes
1 answer
96 views

I need to parse this string d = "1 3 2 1,1 1 2 4,1 1 2 5,1 1 2 6,1 7 2 1,1 8 2 1,1 9 2 1,1 1 3 4,1 1 3 5,1 1 3 6,1 7 3 1,1 1 3 8,1 1 3 9,1 5 4 1,1 6 4 1,1 7 4 1,1 1 4 8,1 1 4 9,1 6 5 1,1 7 5 1,1 ...
SoftEngStudent's user avatar
-1 votes
1 answer
163 views

I have tried to convert my String to an int but my code keeps crashing. The code is as follows: String age = getAge(); CalculateDaysSinceBirth((int) age); But I get a NumberFormatException.
DzoonyVersace's user avatar
0 votes
4 answers
296 views

So I want to make a program in C which prints the initals of a name but facing one problem . My program should not print . as the last character, and I have tried this: #include <stdio.h> #...
Satyajit Ghosh's user avatar

1
2 3 4 5
21