Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Regex cutting off anything after space in the url - Theo's Typesafe Cult
TTC
Theo's Typesafe Cult
•
3y ago
•
4 replies
DivMode
Regex cutting off anything after space in the url
Heres the current regex
:
const regex
=
/
(https
?
:
/
/
\S
+
)
\s
\n
\s
(Canonical
|
\d
)
/g
;
it gives back
:
"
http://www.stjosephnewwaverlytx.net/Religious
"
want it to give me the full url
:
"
http://www.stjosephnewwaverlytx.net/Religious
"
+
" Education
/Teachers and Staff
/Lessons
/Misc
/Sacraments
.jpg
Tried for a couple of hours to get it working but with no luck
. Any help would be appreciated
. Thanks
!
Theo's Typesafe Cult
Join
26,564
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
regex
TTC
Theo's Typesafe Cult / questions
4y ago
get url after uploading in client side
TTC
Theo's Typesafe Cult / questions
2y ago
Redirect to dynamic url after log in
TTC
Theo's Typesafe Cult / questions
3y ago
After logged in, how to redirect users back to the same URL they were before logging in?
TTC
Theo's Typesafe Cult / questions
2y ago