|
[Req] Match 1 or more directory path levels
|
|
Apr. 23, 2015, 03:09 AM
(This post was last modified: Apr. 23, 2015 03:17 AM by wammie.)
Post: #1
|
|||
|
|||
|
[Req] Match 1 or more directory path levels
I am looking for a pattern to match 1 or more directory path levels, to replace it with just 1 directory path level.
Examples of directory paths to MATCH (Note - "text with possible spaces between words" refers to unknown text strings, and the number of levels is indeterminate): http://domain/ http://domain/text with possible spaces between words/ http://domain/text with possible spaces between words/text with possible spaces between words/ http://domain/text with possible spaces between words/text with possible spaces between words/text with possible spaces between words/ REPLACE all matches with http://newdomain/ Another way to express this: MATCH http://domain/--- anything including "/" or spaces any number of times ---/ (up to the last "/") REPLACE all matches with http://newdomain/ Thanks to anyone that can help!! |
|||
|
« Next Oldest | Next Newest »
|
| Messages In This Thread |
|
[Req] Match 1 or more directory path levels - wammie - Apr. 23, 2015 03:09 AM
RE: [Req] Match 1 or more directory path levels - JJoe - Apr. 23, 2015, 04:53 AM
RE: [Req] Match 1 or more directory path levels - wammie - Apr. 25, 2015, 12:11 AM
RE: [Req] Match 1 or more directory path levels - JJoe - Apr. 25, 2015, 03:22 PM
RE: [Req] Match 1 or more directory path levels - ProxRocks - Apr. 27, 2015, 09:38 AM
RE: [Req] Match 1 or more directory path levels - Oddysey - May. 02, 2015, 05:58 PM
RE: [Req] Match 1 or more directory path levels - wammie - May. 02, 2015, 10:01 PM
RE: [Req] Match 1 or more directory path levels - Oddysey - May. 03, 2015, 04:34 AM
RE: [Req] Match 1 or more directory path levels - Kye-U - May. 03, 2015, 06:17 AM
RE: [Req] Match 1 or more directory path levels - JJoe - May. 04, 2015, 03:25 AM
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)