Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Regex: Match Last Occurrence aka Negative Lookbehind

foo(?!.*foo)

# foo(1) bar(1) foo(2) bar(2) foo(3) bar(3) 
# expression would match 'foo(3)'
Source by is.gd #
 
PREVIOUS NEXT
Tagged: #Match #Last #Occurrence #aka #Negative #Lookbehind
ADD COMMENT
Topic
Name
8+8 =