Replies: 1 comment
-
So please try:
Explain:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to write a search engine that allows me to look up directions using a separator (e.g.
:
) to delineate start and end locations. For example:gmdir New York City : Pittsburgh
would be inserted into
https://www.google.com/maps/dir/New+York+City/Pittsburgh
The regex
re=/(.+)\s:\s(.+)
would create the two capture groups correctly (from quick testing), but I'm unsure how this could be piped into the URL pattern. I tried adding this to the end of my search i.e.,gmdir: https://www.google.com/maps/dir/$s{$1}/$s{$2} [re=/(.+)\s:\s(.+)] Google Maps Directions
but that didn't work, so I think I'm misunderstanding how VimiumC handles regex. If anyone has some suggestions, they would be very much welcomed!
Beta Was this translation helpful? Give feedback.
All reactions