Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
0 votes
3 answers
90 views

I would like to extract a string from file name as below. File name: L8_P0_TOPSIDE12_AA-MPS-K-PCE.JPG Expected Output: AA-MPS-K-PCE I am write my code as below butI cannot get what I expected. Need ...
Filota's user avatar
  • 17
1 vote
4 answers
105 views

Need to separate the following long string using oracle regexp - Row1 has following value- 'van dam is brother of Prince Charles(12345). Mathew Perker is son of Prince Charles(12345).' Row2- 'Madam ...
Kaustav Nandy's user avatar
0 votes
1 answer
35 views

This is probably pretty simple for most, but I'm just not great at regular expressions. I have a set of strings with this type of format: SYND_YAHOO_7BEST_RANKADDITIONS_268_2357425 So basically I ...
Landon Statis's user avatar
2 votes
4 answers
95 views

I have a string which contains a '48.6 X 90.6' at COLUMN DIE_SIZE. I want to split this string into size_x and size_y. I can only find a way to split the die_y Example Strings: DIE_DIZE 48.6 X 90.6 77....
prakasit su's user avatar
2 votes
1 answer
397 views

I'm trying to use REGEXP in an MariaDB 11.0.2 query to extract all of the image source links within the HTML and text of the field post_content that is in each row in wp_posts. I've looked at related ...
BlueDogRanch's user avatar
0 votes
0 answers
29 views

I have a test-string like this: "2 Test123 H: 6 Test23 2 H:2 H :5 H : 5" I want to get only the digit after exactly "H: ". Not "H:", "H : " or "H :". ...
Andreas's user avatar
  • 11
0 votes
1 answer
182 views

I am using snowflake and I am parsing an email message for a certain field. I found that only 2 records have a whitespace in the front. I have used trim, tried various types of char replace (9,10,13,...
P5_'s user avatar
  • 17
0 votes
3 answers
82 views

Hello i have 3 strings that i want to split and they are all separated with delimiter string_1 contains names of fields for example: ID, DUE_DATE string_2 contains values of fields for example: 80781,...
Panos_Koro's user avatar
0 votes
1 answer
99 views

I have two tables like this: | MOVIE_ID | BUDGET | |----------+-------------| | 1904269 | $850,000 | | 1809508 | NLG 800,000 | | 1988471 | $40,000 | | 2119404 | $3,266 | | ...
hanamontana's user avatar
0 votes
1 answer
56 views

From every String I want to remove the substring "withHugo" I tried SELECT REGEXP_SUBSTR('STRING-EXAMPLEwithHugo','(.+)withHugo') "REGEXPR_SUBSTR" FROM DUAL; but it returns "...
Matthias Reissner's user avatar
0 votes
3 answers
133 views

I'm trying to extract price for each day from a tag list in SQL Developer. This is my list (I can use another list format if needed): monday12monday, tuesday567.12tuesday, friday87friday I'm looking ...
Aya's user avatar
  • 25
0 votes
1 answer
112 views

Basically, I have an input String in PL/SQL that looks like the following: input varchar2(100) := R985AD5768N2 This string is composed of several information preceded by a certain prefix each and ...
Fuchspower's user avatar
-1 votes
2 answers
1k views

I have a json like below stored in col1 of a snowflake table table1 from which I want to extract the dump portion into a column dump in a snowflake table table2. I am trying to use regular expression ...
Prachi's user avatar
  • 564
0 votes
2 answers
52 views

I have incoming data which is delimiter by a string token: Data 1__##__Data Two__##__Third Data__##__4th Data__##__ I would like to split this by the delimiter __##__ to give: Data 1 Data Two Third ...
TenG's user avatar
  • 4,034
0 votes
2 answers
99 views

I have column let's say called "assets" with results looks like this //bigquery.googleapis.com/projects/ABC/datasets/123 //bigquery.googleapis.com/projects/BlaBla-something/datasets/12345 /...
user22972173's user avatar
0 votes
1 answer
68 views

How can I capture the word after 3rd gaps using regexp? SELECT REGEXP_SUBSTR(DATA,’\s{3}[A-Z{3}\d+\.\d+’) FROM TBL Data: Y091234ABC 100 DEF100.25 DEF200 DEF300 DEF10000 ...
Richard's user avatar
0 votes
2 answers
67 views

i am trying to fetch some text from HTML string from a table. the text are like this and i am trying to get the output ID,TEXT 1,<font face="Microsoft Sans Serif" size="8" color=...
goldenbutter's user avatar
0 votes
2 answers
237 views

I am using REGEXP_SUBSTR to select part of a string. The full string is either of the form text (more_text (other_text)) or text (more_text (other_text)) (the difference here is the extra space ...
user192356's user avatar
0 votes
1 answer
203 views

I executed the same statement in MySQL and Oracle, but they returned different results. Regular expression "/?" means to return zero or more "/", but why would MySQL return me a &...
hpd's user avatar
  • 3
0 votes
1 answer
66 views

i would like to do an automatic replace with an oracle query in multiple strings available in an oracle table, by changing fields separator ','between first occurrence of 'select' and first occurrence ...
Mathew Linton's user avatar
0 votes
1 answer
431 views

I saw an SO answer here which has the SQL to extract domain from a URL in Redshift. I am very new to Regex. Is it possible to understand the answer step by step? REPLACE(REGEXP_SUBSTR(url,'//[^/\\\,=@\...
macromind's user avatar
  • 143
1 vote
1 answer
376 views

I wanted to find all sets of words that are repeated in a text. for example: string21="we read all sort of books, we read sci-fi books, historical books, advanture books and etc." Now regex ...
Avid Programmer's user avatar
0 votes
1 answer
56 views

After applying function GET_JSON_OBJECT(features, '$.field') I get the values: {10:3,300:286} {300:86} {300:3,50:1} How to get the value after 300 then? Needed result is 286 86 3
bluekit46's user avatar
  • 153
1 vote
3 answers
4k views

I'm trying to use the REGEXP_SUBSTR method in Snowflake to extract a string after the period. I have the following possibilities: ALTER TABLE DATABASE_NAME.SCHEMA_NAME.TABLE_NAME ADD COLUMN .... ...
kiwiLime's user avatar
  • 115
0 votes
2 answers
187 views

For this data in a packed field: ONE|TWO|THREE|FOUR|FIVE|SIX|SEVEN|EIGHT|NINE|TEN|ELEVENTHEBAND|TWELVE I have this regexp: REGEXP_SUBSTR(the_packed_field_column , '((|)([[:alpha:] ]*)(|))' , 1 , 1) &...
mojave's user avatar
  • 31
0 votes
2 answers
11k views

I am finding out very quickly that the REGEXP_SUBSTR help online is 100% not resonating with me (Oracle SQL). I believe I have a relatively simple use case, but I'm having a hard time tracking how one ...
bmax's user avatar
  • 19
1 vote
1 answer
926 views

I have the below data in a table. row_num desc 1 First Name/Last Name - Middle Name 2 FirstName/LastName - MiddleName 3 FirstName/LastName I am looking for the desired output as below row_num desc_1 ...
Bruce's user avatar
  • 111
1 vote
1 answer
371 views

I've done a ton of Googling on this and can't find the answer. Or, at least, not the answer I am hoping to find. I am attempting to convert a REGEXP_SUBSTR search from Teradata into T-SQL on SQL ...
WannabeDev's user avatar
0 votes
2 answers
183 views

I am having a difficult time trying to return a specific section of string from a field (BSE.NOTES) using REGEXT_SUBSTR. For my query, I have a VARCHAR2 field with a specific text that I would like to ...
dwaynesworld0213's user avatar
0 votes
0 answers
141 views

Having this field in my database "description" (MariaDB, PHPMyAdmin): <ul> <li><a href="https://onedomain.com/name-of-product-18-8433290610079.html">Product 1 <...
TheCHE's user avatar
  • 1
1 vote
2 answers
492 views

Can someone help me fetch "Client name" using regexp_substr from below path in Snowflake. The client names here can have spaces or underscores s3://student-com/student-to-employee/student1/...
Sara's user avatar
  • 43
0 votes
2 answers
238 views

I am trying to use regexp_substr to break up table data held in one cell to the individual fields. the data is , delimited. individual cells can also contain , within quotes and finally some cells can ...
WJF's user avatar
  • 1
-2 votes
1 answer
568 views

I need to extract a string that will located between two characters, with always the same pattern sample string: A CRN_MOB_H_001 a--> <AVLB> What is in bold AVLB is what I want to extract, ...
lass's user avatar
  • 9
0 votes
1 answer
639 views

I have data in an Oracle column in the below format: Ch99// 4// Sub// 586915 16// jkc 12/12/22 And I need to extract the substring of "4" that will always be between the first two ...
HoulB's user avatar
  • 3
2 votes
1 answer
697 views

I only want the numeric part of this string column: identity student:1234 student:56 student:789 id:driver_license-111-AZ id:learner_permit-222-NY So that the output should be: wanted 1234 56 789 111 ...
puifais's user avatar
  • 900
0 votes
1 answer
193 views

I have a procedure that is actually making a replace of '#$#' by '', the value that contains '#$#' it could be, like this one: 'AAA#$#DEFAEFGAA', with no defined length. But what is really needed is ...
JIT's user avatar
  • 1
1 vote
3 answers
488 views

select regexp_substr('a-b--->d--->e f','[^--->]+',1,1) col1 ,regexp_substr('a-b--->d--->e f','[^--->]+',1,2) col2 ,regexp_substr('a-b--->d--->e f','[^--->]+',1,3) col3 ,...
CaptainX's user avatar
0 votes
1 answer
244 views

I am trying to parse an error message in ES7. The message contains IPs and Numbers. I tried with regex and with simple search inserting the first part of the IP. Both are not working. This my simple ...
Furin's user avatar
  • 592
0 votes
1 answer
887 views

I have to write a query to fetch rows for 100+ diagnosis codes. What can be an optimal SQL query ? Below are the details of what I have: Table: Diagnosis_Cd Description A00 Cholera A000 Cholera due to ...
Geeths's user avatar
  • 81
0 votes
1 answer
89 views

I need my regexp to cover every hour range that is below. 07:00 - 15:30 16:00 bis 20:30 7:00-15:00 7.00 Uhr 16.30 Uhr 7 - 16.30 Uhr 7 - 16 Uhr 7:30 - 16 Uhr 7:15 Uhr bis 16:30 Uhr 7-16.15 Uhr I need ...
Mtszbrtw's user avatar
0 votes
2 answers
5k views

i am using oracle sql. i would like to substr starting from characters XY0 and include 2 or 3 more characters until '-' sign in the string These characters may be anywhere in the string. Original ...
Ann Mir's user avatar
-1 votes
1 answer
493 views

I wanted to extract all the "name" values from this: {"id":"1","name":"simpleword","type":"test"},{"id":"123",&...
x89's user avatar
  • 3,532
0 votes
1 answer
132 views

I have a string that looks like this: {"id":"1","name":"simpleword","type":"test"},{"id":"123","name":"...
x89's user avatar
  • 3,532
0 votes
1 answer
341 views

I have a table with a column "TAGS". Each row in this column has a bunch of dictionaries separated by commas. It looks like this: Row 1: { "id":"334", "name&...
x89's user avatar
  • 3,532
0 votes
1 answer
215 views

I have a table with a column "TAGS". Each row in this column has a bunch of dictionaries separated by commas. It looks like this: { "id": "334", "name": ...
x89's user avatar
  • 3,532
0 votes
2 answers
575 views

I have a table column full of strings like this: 'top-level:volume(1):semifinished(21491628):serial(21441769)'. I would like to return just the numbers after 'serial' (i.e. '21441769') using ...
Drake's user avatar
  • 25
1 vote
1 answer
61 views

I am trying to find all the top level 'except' clauses from the below string. where ( param1 equals value1 and param 2 equals valu2 except ( param3 equals value3 where ( param4 equals ...
Chiranjit Bhattacharya's user avatar
0 votes
2 answers
188 views

I have something like below stored in a table column. I need only 133 extracted from this. 015.133.Governmental Affairs When I do select regexp_substr('015.133.Governmental Affairs', '\.*+[[:digit:]]+*...
Dito's user avatar
  • 55
1 vote
1 answer
203 views

Using Oracle regular expression particularly regexp_substr and replace functions, I'm trying to find a way to replace strings that matches the pattern. To explain better, here's a sample data. <p&...
ads's user avatar
  • 1,743
0 votes
1 answer
254 views

I have a question regarding REGEXP_SUBSTR in redshift. I have a string, and I want to always return the last substring 'STATUS CHANGE FROM ''something'' TO ''another thing''. There might be multiple ...
Xixi's user avatar
  • 127

1
2 3 4 5
8