Skip to main content

Questions tagged [regex]

Also known as regular expression or regexp, a description of a set of strings, often used for searching and validating strings.

-2 votes
1 answer
38 views

Using vim 9.1 on Lubuntu 24.04 Suppose @" contains " Jcouldn't, ". I have tried a variety of regexes to reduce @" to Jcouldn't, including echo substitute(@","^\A*\(\u\l\+'...
user985675's user avatar
-1 votes
3 answers
168 views

I'm doing a project using LIbreOffice 25.2.3.2 on a MacBook Air which is running OS Sequoia 15.6.1. I have a spreadsheet in which U.S. states are assigned a region. It looks like this: What would be ...
Catlike's user avatar
  • 107
1 vote
1 answer
535 views

I'm trying to come with a regex that search for every word after enum and before braces {} in vim. enum CONSTANTS{ ..... }; I try /\<enum\>\=.*[^{] and search for patterns from enum to next {. ...
Daniel Muñoz's user avatar
2 votes
2 answers
242 views

bash 4.4.20 $ echo $X (6 rows) [[ $X =~ row\)$|rows\)$ ]] && echo matches matches That works, but is redundant. Is there a way to isolate the \) and s\), so as to say "match row + ')' ...
RonJohn's user avatar
  • 467
0 votes
3 answers
207 views

What works in an online tester or NotePad++ does not work in Word. Word either finds nothing or two characters, not what it should. I have Use Wildcards as the only item checked. Say: Happy 123(456)-....
Sarah Weinberger's user avatar
-3 votes
1 answer
186 views

In short, I need to match the whole number with 7z, gz, and txt. Here are some examples: 1740329420285-105653_left_hpwn.7z 1740314283864-left_0.7z 1740901975709-found_0.txt 1740314283864-left_0.7z ...
Yossi Berman's user avatar
1 vote
1 answer
179 views

I created a powershell script to do certain tasks for our sales/finance department. Our system creates a large PDF file with several pages where each page is one invoice. The PDF file needs to be ...
padawan_IT's user avatar
2 votes
0 answers
90 views

On a WordPress site, I'm trying to move five subfolders and all their contents (about eighty pages in all) up one level in the tree, so that each subfolder becomes a folder off the root. From this: ...
ignorant slob's user avatar
3 votes
4 answers
373 views

I’m trying to get the time delta value for a given host (I have either its hostname or IP address) from the following text: -------------------------------------------------------------- CentMgmt::...
breversa's user avatar
  • 229
3 votes
1 answer
269 views

I need to remove the first leading slash in the html file. For example /2019/02/25/some-article-here turns just into 2019/02/25/some-article-here Exactly as posted here, but with Notepad++ only. A ...
Twissell's user avatar
1 vote
1 answer
102 views

I have the below pattern: \".*\\(.+)[\r\n]?(.*)\" Being applied against the following text: "c:\users\jdoe\OneDrive\Folder 1\Folder 2\File 1.pdf File 1.pdf" "c:\users\jdoe\...
user66001's user avatar
  • 1,372
0 votes
0 answers
95 views

I'd like to figure out how, using regex in VS Code, to replace within a matched string. For example, with the following text: Public Sub Name() Line 1 Line 2 Line 3 End Sub I'd like ...
pdtcaskey's user avatar
  • 148
0 votes
1 answer
81 views

I am using Adobe InDesign. I want to apply character style named bold using grep styles/nested styles but only until the first : from the start and last parenthesis. The grep I am using is making all ...
Shahid's user avatar
  • 145
0 votes
0 answers
62 views

I am working in Adobe InCopy and need to find a particular sequence except when it appears at the start of a paragraph. To do this I am using the following GREP/regex pattern: (?<!^)x. (This is not ...
j_foster's user avatar
  • 386
1 vote
1 answer
88 views

I'm trying to split a multiline text by a word. The problem is that -split "(?=Name\s*:)" will not include white spaces before the 'Name'. "(?=\s*Name\s*:)" will split empty lines, ...
JPX's user avatar
  • 179

15 30 50 per page
1
2 3 4 5
144