| Title |
Test
Find
Find Relative Paths
|
| Expression |
(src|href|action)="(?!http://|#|mailto:|&)([^/#"]) |
| Description |
If when making a website you need to find your relative paths, this regex will find them. You can use the follow to make them absolute:
\1="/\2 |
| Matches |
src="images" | href="index.html" | action="process.php" |
| Non-Matches |
src="/images" | href="/index.html" | action="/process.php" | href="http://www.google.com" | href="mailto:[email protected]" | href="#" | href="" | href="&name=test" |
| Author |
Rating:
Not yet rated.
Kerry Jones
|
| Source |
|
| Your Rating |
|