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...
Postgres regexp replace not working
Converting text log file with data in quotes to individual columns, using RegEx
Splitting and select string starting with uppercase letter with Regex
Regular expression to return only alpha characters left of a character
Notepad++ replace last symbol in search regex
how to enforce a date format
Regex: txt vs tx?
Grok pattern for logs sent to logstash
Regex to fetch substring from a string
how to remove everything after [/img] with regex?
Windows Batch File Regular Expression
Select digits on the end of line
Need to make htaccess rule that blocks empty user agent unless the request contains a specific string
Regex to match different characters at same position in string
how do i extract only 5-digit strings from cells in excel?
Regex to gather text within multiple pipes