Then I do a find and replace with regular expression with "\/something\/([0-9]+)". It finds nothing. I've tried "\/something\/(\d+)", but still there is nothing.
It works fine if I leave out the "()" (ie. "\/something\/[0-9]+")
Anyone know how I can get this to work?
(Using Win XP SP3)
For reference, here is the Notepad2 regular expression syntax:
Regular Expression Syntax
. Matches any character
\( This marks the start of a region for tagging a match.
\) This marks the end of a tagged region.
\n Where n is 1 through 9 refers to the first through ninth
tagged region when replacing. For example, if the search
string was Fred\([1-9]\)XXX and the replace string was
Sam\1YYY, when applied to Fred2XXX this would generate
Sam2YYY.
\< This matches the start of a word.
\> This matches the end of a word.
\x This allows you to use a character x that would otherwise
have a special meaning. For example, \[ would be interpreted
as [ and not as the start of a character set.
[...] This indicates a set of characters, for example, [abc] means
any of the characters a, b or c. You can also use ranges, for
example [a-z] for any lower case character.
[^...] The complement of the characters in the set. For example,
[^A-Za-z] means any character except an alphabetic character.
^ This matches the start of a line (unless used inside a set,
see above).
$ This matches the end of a line.
* This matches 0 or more times. For example, Sa*m matches Sm,
Sam, Saam, Saaam and so on.
+ This matches 1 or more times. For example, Sa+m matches Sam,
Saam, Saaam and so on.
\d Any decimal digit.
\D Any character that is not a decimal digit.
\s Any whitespace character.
\S Any character that is not a whitespace character.
\w Any "word" character.
\W Any "non-word" character.
\xHH Character with hex code HH.
-----> Examples (don't use quotes)
- Quote lines: find "^" replace with "> "
- Unquote lines: find "^> " replace with ""
- Remove line numbers: find "^[0-9]+" replace with ""
- Convert tabs to double spaces: find "\t" replace with " "
A 10% IPC boost is underwhelming for what is supposed to be a major generational leap. Unless it's accompanied by higher clock speeds, or the IPC boost is greater than 10% in games, I'm not sure that it will be enough to compete with Zen 5 X3D, let alone Zen 6 X3D for gaming.
Single-core performance is super important and cannot be compensated with more cores, whereas the reverse is true, you can compensate for fewer cores with better single-core performance.
Been happy with Windows 11 myself even since first release in 2021, sure it hasn't always been perfect, but nothing is per say.. Issues i did have was minor ones, which is normal with any OS really.
I still use Windows 10 at times on my unsupported Gaming Laptop, and i find myself using the Windows 11 Desktop more.
Eventually replacing Gaming Laptop with a Windows 11 Compatible one somehow, someway this year or possibly next year at the latest, but its gonna happen--(May save all my Bing reward points except the 1000 to have extended support for 10) then work on getting quality Replacement hard)
Question
homeagain
I'm having trouble using regular expressions in Notepad2 to tag a region.
For example let's say I have this list of URLs:
http://example.com/something/123
http://example.com/something/456
http://example.com/something/789
Then I do a find and replace with regular expression with "\/something\/([0-9]+)". It finds nothing. I've tried "\/something\/(\d+)", but still there is nothing.
It works fine if I leave out the "()" (ie. "\/something\/[0-9]+")
Anyone know how I can get this to work?
(Using Win XP SP3)
For reference, here is the Notepad2 regular expression syntax:
Link to comment
https://www.neowin.net/forum/topic/732686-regular-expressions-in-notepad2/Share on other sites
1 answer to this question
Recommended Posts