regex


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...

Related Links

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

Categories

HOME
typescript
uwp
clojure
logstash
linear-programming
arm
box
httpbuilder-ng
format
wget
pie-chart
session-cookies
union
axios
googletest
partitioning
lazy-loading
drupal-commerce
textmatebundles
teamcity-9.0
collision
nxbre
rgdal
profiling
selenium-edgedriver
weather-api
intersystems
iar
nested-loops
x-sendfile
operator-keyword
dapper-fastcrud
magento2.0.2
evercookie
dokuwiki
dashboard-designer
lifecycle
sieve-of-eratosthenes
dwm
response
weebly
essbase
mergesort
android-studio-2.1
maven-jetty-plugin
distributed-lock
default-browser
rating-system
adal.js
asyncsocket
xbrl
kony
breach-attack
turbo-c
mit-scheme
xnamespace
agents-jade
activity-diagram
file-management
xmllint
android-number-picker
submission
uploadify
webmail
mars
skrollr
tag-helpers
dual-table
interpreted-language
ironmq
json4s
rdotnet
linegraph
antiforgerytoken
targetinvocationexception
express-jwt
iphone-privateapi
globus-toolkit
nawk
android-lru-cache
onejar
mod-python
emitmapper
polarssl
pubdate
firebird2.1
xcode4.2
globbing
source-highlighting
symfony-2.2
browserid
applaud
timestamp-with-timezone
arden-syntax
rgba
expression-encoder-sdk
sdl.net
textboxlist
replay
having
jboss-cache
custom-protocol
sloc
cracker

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App