All Questions
6,925
questions
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,...
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 = $...
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'...
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 ...
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,...
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, ...
-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 :
...
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:
#...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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>
...