Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
2 votes
2 answers
47 views

reg_replace in PostgreSql with pattern matching

I have below dataset, 1. '{SHEET,2730377,SHEET,5708283,DATA,3015937}' 2. '{SHEET,2730377,SHEET,5708283,DATA,3015937,DATA,0010965}' 3. '{SHEET,5708283,DATA,3015937,DATA,0010965}' 3. '{SHEET,5708283,...
Jim Macaulay's user avatar
  • 5,107
2 votes
2 answers
43 views

Difficulty understanding "replace" combined with RE and scriptblock in Powershell

The script is designed to search for users located in $ListOfDismissedEmpl and doing something else... $ListOfDismissedEmpl = "22261,24996,25340".Split(",") $filter = $...
user25554412's user avatar
4 votes
3 answers
81 views

Use Notepad++ to Capitalize Letters in Snake Case

I'm using Notepad++ to find/replace and can't quite get what I need. My Current Output is being generated with ^(.+)$ as my Find and ,dim_date[(\1)].alias\((\1)\) as my Replace. It's close, but I can'...
simplicITy's user avatar
1 vote
1 answer
47 views

match two or more of the preceding token and replace

I am looking to replace his/her based on gender, but i have to make sure that if it's comes between the line then must be starting small his/her or starting of line or after statement end it must be ...
Tanay Patel's user avatar
0 votes
1 answer
75 views

How to remove special character without knowing the type of special character?

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
  • 5
3 votes
3 answers
181 views

How to remove duplicate character sequences within a string? [closed]

I have a column in a tibble that should always have an 8-character string as its value, for example ABCDEF12. Unfortunately, I sometimes get values with a duplication of 2 characters in the string, ...
pure_func's user avatar
-1 votes
1 answer
50 views

React native display [object Object] after returning it

I receive some string that containt html tags. Exemple : "Hello,click <u>here</u>" I create a function for interpret them with the goal to render it under react native : ...
Vénon's user avatar
  • 49
0 votes
1 answer
156 views

How to convert only the first letter as uppercase?

So, I want to convert only the first letter using REGEX and then bypassing function to uppercase it. However Typst return "expected string or content found dictionary" This is the source: #...
Programmer Dancuk's user avatar
0 votes
0 answers
24 views

Java regex whole word boundary code not working with Cyrillic characters [duplicate]

I'm trying to replace a whole word in text by using \\b word boundary code in Java regex replaceAll() method. It works fine with latin characters, but it's not the case with Cyrillic characters. Is ...
horvoje's user avatar
  • 799
0 votes
0 answers
22 views

Insert multiple tabs (or characters) using Regular Expressions [duplicate]

I'm using Notepad++ RegEx Replace to convert a lateral list Q, N, S, G into a vertical one, with multiple tabs preceding each character. Q N S G Is ...
MJA's user avatar
  • 366
1 vote
2 answers
92 views

MySQL complex REGEXP find and replace

I want to run a regexp find and replace on a wordpress database, specifically the in wp_posts table, in the post_content column. I have several affiliate URLs scattered in the text of the post_content ...
Joao Rennato's user avatar
0 votes
1 answer
87 views

ReactJS - Replacing first occurrence of string pattern with custom component

I have a number of strings with this format: 'The model of that car is [assignment: any car model] and it has [assignment: any number] horsepower' I want to display this string in my UI and replace ...
Rodolfo's user avatar
  • 310
1 vote
2 answers
111 views

conditional replace of a string in python

I want to perform conditional replace of string. if my string = "abaabaaabaaaabaaabaaaaaabaababaaabaaaabaaaaaabaaaaabaaabaabaababaaabaaaabaaaabaabaaab" and I want to replace a with 2 ...
Rashid Ansari's user avatar
1 vote
1 answer
37 views

Powershell Remove part of Video filename containing Square/Round brackets and everything inside those brackets

I have several videos that has either round brackets and/or square brackets with some text inside those like (ANTYHING HERE) OR [ANTHING HERE]: For example: MOVIENAME 2024 LANG [SOMETEXTHERE] 1080P....
Vicky Dev's user avatar
  • 2,121
0 votes
2 answers
41 views

regex avoid replace number from (.*) replacement [duplicate]

I want to remove part of string using start and end words in string. At the same i want to keep number appear in this range. String: <FORMAT=T>8</FORMAT><FORMAT=ty>45</FORMAT> ...
Premlatha's user avatar
  • 1,928

15 30 50 per page
1
2 3 4 5
462