I'm doing a project which requires me to match URLs . I'm horrible at regex. But i believe the structure goes as follows -
- letters and symbols , except space that that can be repeated 1 to any number of times,
- immediately followed by a dot 0 or 1 times,
- followed by letters and symbols , except space, 1 to many times,
- followed by a dot " ." ,
- followed by a list of valid extensions (like com ,org,in (will be specified here))
- followed by a "/" 0 or 1 times
- if 0, then immediately followed by space
- if 1 , then words and symbols except
how do I form the regex for this