Develop a script using a regular expression to form the current path to the file from the page address (instead of the file name with the .asp extension, put /). For example, instead of ggg / gl / h.asp should be ggg / gl /.

    1 answer 1

    /\w\.(.*)/ so it is possible .. the main thing is that the points are not used anywhere else on the way

    well or so (if they can be points):

    /\/\w\.(.*)$/ .. but there will find the last slash - then manually add it to the end

    • Everything works, thanks a lot) - WFZ