I am trying to use an optional capture group in a tuckey outbound rule, but it does not work. Any help on this would be greatly appreciated.
Can I use the format (. +)? as an optional capture group in tuckey. When I tried in apache, it works fine, but in Tuckey it doesn't work. I even tried to run away ?, but still not working.
For example, I have two types of URLs
http: // xxx / discontinued-products / token / - categories% 3C% _c_discontinued_category% 7D-- http: // xxx / token / - categories% 3C% _c_discontinued_category% 7D--
I'm trying to write an outbound rule to rewrite a few words in a URL, but I want the rule to apply to the above URL. So I used a rule starting with the following.
In From
^ /? (. +)? / Marker /
In to
$ 1 / marker /
Try:
^/(.+)?token/(.+)?$
To:
/$1?token/$2
I did not test it in a real environment, but the regex test showed that it catches both expressions from.
Source: https://habr.com/ru/post/1606449/More articles:Java For Loop - insert an element after every n elements - javaPassing a variable from C # to PowerShell does not work - c #Submit form in Dataobject - Silverstripe 3.1 - phpResizing images at boot - silverstripeGrace period? - AWS EC2 container aggregates and balancing balancing loads - amazon-web-servicesPlot warped a 2D mesh using Python - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1606451/infinite-recursion-in-decorator-class-seems-to-inherit-from-itself&usg=ALkJrhgVV_En-u_mb5NuNggBbdT5D0vDdAhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1606452/how-can-i-drag-files-from-a-web-view-to-the-desktop&usg=ALkJrhgUtu5vv5OejNe-4jtzxxZuvNPKPAOCMock - [NSURLSessionDataTask response] непризнанная авария селектора в iOS 9 - unit-testingWhich Git command displays content that is present only in a branch whose commits are completely merged into master? - gitAll Articles