Trying to get not greedy regex in omake
im working in a omake file and have a string represented a path. I'm trying to remove the first directory. this is my string: PATH = \PI\Common\noa\common\util i wrote this regex: $(PATH,S/.+\\\(.*\)/\1/) but the result is util. While what I want to receive is this string : \Common\noa\common\util i tried using "?" for being not greedy but it doesn't work here (omake file) someone knows how to do it?
If the non-greedy modifier doesn't work in omake, you can always explicitly prevent the backslash from matching in your "get everything up to the second backslash" expression: \\[^\]+\(.*\) I don't know if the brackets have to be escaped in omake, but you get the idea...
glob2rx in R to get all cells whose last decimal is 5?
Finding file names without a specified character
Perl: quick replacing of occurrences of multiple words in an array
Extract resolution from string
How do I create a Scala Regex that is compiled using Java Pattern.COMMENTS?
Is there a way to search terms in order with RegexpQuery in lucene?
Regex to allow any charcter EXCEPT backslash
Regex: Match a condition, then find the first occurrence of another condition that precedes it on the same line. Possible?
Regex for URL routing - match alphanumeric and dashes except words in this list
R: gsub and capture
Trouble with regex in Perl
Duplicate symbols in regular expressions
NSRegularExpression to remove the rest codes
Regex replace in sublimetext2
Regular Expression Search Replace all non leading tabs with single space Notepad++
Django regular expression on success format