All Questions
736
questions
1
vote
1
answer
41
views
VBA Backreferencing using Regular Expressions Find and Replace
I want to standardize the formatting of some text within a Word document using VBA and regEx. For example, my document would contain text strings such as "Qty #", "Qty (#)", "...
1
vote
1
answer
79
views
How to find file names with non-printable characters using `find` on macOS?
Some folders on macOS have custom icons that are stored in a file named Icon?, where the ? is actually a CR character, and only prints as "?" in most cases (in Terminal and Finder).
But when ...
1
vote
2
answers
91
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 ...
1
vote
2
answers
74
views
Add quotation to start and end of each line in Xcode
I have multiple lists (in a .txt file) which I'd like to quickly convert to an array. I've seen this question asked and answered here for Notepad++, but not for Xcode. Is it possible to similarly here?...
0
votes
1
answer
68
views
How to create a "variable" group (for future reference via \n) in extended grep regex type (how not to repeat myself)?
Result: I wanted from regex what it is not intended for. If you don’t find a function in regex, then most likely it’s not there. Regex for simple cases
Note: I want the solution to work even if ...
1
vote
3
answers
60
views
Regex question using sublime (Find/Replace)
Ok, using either bash terminal or find/replace in something like sublime, I want to find:
BLK=$'\e[0;30m'
RED=$'\e[0;31m'
GRN=$'\e[0;32m'
YEL=$'\e[0;33m'
BLU=$'\e[0;34m'
MAG=$'\e[0;35m'
CYN=$'\e[0;36m'...
-1
votes
2
answers
43
views
Print the Immediate Left Character of the Text Searched in a Text File Using Python
As I am running a program where I want to replace the searched text with my replacement text. However, at the first instance it does the great work but on running the next instance it is not ...
0
votes
1
answer
63
views
Bash command `find` with Regex pattern doesn't match correctly non-word-characters
I'm writing a Bash script and need to match all files and folders inside a directory which contain non-word-characters, uppercase-characters and German Umlauts. Inside my test directory I tried ...
1
vote
1
answer
343
views
grepWin: Find this but not that (search for a page that has a string but not another)
I am trying to find files that have a certain word but at the same time missing another (in any order) through grepWin for Win 10 (v. 2.0.13). I tried with both options "Dot match newline" ...
0
votes
1
answer
317
views
Alternative to 'find' which supports PCRE [closed]
Linux's find command does not support Perl compatible regular expressions (PCRE).
Is there an alternative that can do that that is concise to use (one line on command line).
I found some one liners ...
0
votes
1
answer
94
views
find with -regex and or pipe | not working
Can someone tell me why the third command doesn't give the files a and b? (Using the default bash on my Mac)
bashs: bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin20)
Copyright ...
0
votes
1
answer
281
views
Compact syntax to exclude file extensions from search
Basically I wonder if there's a shorter way to do this:
*.* !*.exe !*.zip !*.jar
Problem is, I write software that generates files with extensions I can't predict - neither in what I want to exclude, ...
-1
votes
1
answer
78
views
Match java-script files name using regex
How I can match the following files name using regex.
index.js
[id].js
[...params].js
I tried this regex on my own but it seems to be not work
[a-z[]*.tsx
index.js // working
[id].js // not working
[....
2
votes
3
answers
68
views
How to find multiple files with different ending in LInux using regex?
Let's say that I have multiple files such as:
root.file991
root.file81
root.file77
root.file989
If I want to delete all of them, I would need to use a regex first, so I have tried:
find ./ - regex '\....
1
vote
2
answers
244
views
MongoDB find document with Date field using a part of Date
i want to search a date like the following:
09-11
03-22
and it will search in the available documents and bring the matched documnet.
an available document example :
2022-09-11T15:31:25.083+00:00
...