Timeline for Regex to select the last components of a file path
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 8, 2015 at 19:16 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 6 characters in body
|
Nov 14, 2014 at 19:20 | comment | added | Ismael Miguel |
@hjpotter92 It works fine now, but it matches resources/services/dealerInfoRequest/f/dealerInfoRequestManager.cfc (replace /f/ by anything between / and it will match). The OP didn't specified if it is a requirement to keep the same format in the string. But I really like your solution.
|
|
Nov 14, 2014 at 18:25 | comment | added | hjpotter92 |
@IsmaelMiguel Sorry, replace .+ with [^/]+
|
|
Nov 14, 2014 at 18:10 | comment | added | Ismael Miguel | @hjpotter92 Your regex is cool, but it matches too much. Check here: regex101.com/r/qP5jL4/1 | |
Nov 14, 2014 at 4:36 | comment | added | hjpotter92 |
Try this: /([/][^/]+)?([/].+)$/
|
|
Nov 11, 2014 at 18:31 | answer | added | konijn | timeline score: 2 | |
Nov 11, 2014 at 16:40 | vote | accept | dhershman | ||
Nov 11, 2014 at 16:01 | history | edited | 200_success | CC BY-SA 3.0 |
edited title
|
Nov 11, 2014 at 15:58 | answer | added | Ismael Miguel | timeline score: 3 | |
Nov 11, 2014 at 15:36 | history | edited | dhershman | CC BY-SA 3.0 |
added 4 characters in body
|
Nov 11, 2014 at 15:34 | history | edited | Marc-Andre | CC BY-SA 3.0 |
removed thanks and some minors changes
|
Nov 11, 2014 at 14:33 | review | First posts | |||
Nov 11, 2014 at 15:34 | |||||
Nov 11, 2014 at 14:31 | history | asked | dhershman | CC BY-SA 3.0 |