- Posted by
- The file is a log file and I'm polling it. So I was hoping to just hit F3 and find the last occurrence which is often buried in a hundred or more lines of other stuff When I use the suggestion provided, it finds the last, but oddly in one rather long file, it also returned an occurrence in the middl...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Meroveus
May 21, 2020
- switch(?!.*switch) Finds the last occurrence of a word on a line, but the file might be several thousand lines long, and I want to find the last occurrence in the entire file. In my test file, I used: switch(?![^¢]*switch) But in real life, I cannot guarantee that the cents symbol will never occur....Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Meroveus
May 20, 2020
- Both are now bookmarked. I needed this to parse a long string with many groups. Previously I had been running two successive regexes Thanks againPosted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Meroveus
May 05, 2020
- Many thanks for that Fleggy and Mofi for the https://www.regular-expressions.info/ link -- what a great resource Also, did I over look the $+{nxt} syntax in the help somewhere? I looked again this morning, and still couldn't find it.Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Meroveus
May 05, 2020
- I have read the readme announcement and the Perl documentations, and I think I should be able to use named references. The target string is: next: 04:11:21 The search string is: next: (?<nxt> \d{2}:\d{2}:\d{2} ) This is recognized as a valid regular expression. The replace string again: \1 works fin...Posted in Find/Replace/Regular Expressions
-   Topics
-   Views
- Meroveus
May 05, 2020