Moderators: Unholy, bextein, Glodenox, JustinS83
Olestas wrote:Wow, now can buttons be added to disable/enable custom checks?
PesachZ wrote:ispyisail wrote:Hi guys
Its not working as expected
Cut and paste from validator just in case
- Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z)|([A-Z]{2})
It picked up many road but not what i was after
examples
Crawford Rd
Fonterra Te Rapa
Piwakawaka Court
Arncliffe Tce
Thoughts?
Thanks
Missing closing square bracket
I think this is looking for any road type 10 or 11, which has in the name a string of space, followed by two characters which be any lowercase or uppercase, or parentheses or a pipe or opening square bracket. Basically I think it is matching any two consecutive letters "case insensitive" or any of the following [()|
Regardless of what exactly it is matching try this to fix it. This still only looks for matches on road type 10 or 11
- Code: Select all
${typeRank}:${street}
/^1[01]:.*( [a-z])|([A-Z]{2})
Sent using Tapatalk for Android 4.4.2
${typeRank}:${street}
/^1[01]:.*( [a-z]|[A-Z]{2})
typeRank
15 freeway
14 major highway
13 minor highway
12 ramp
11 primary street
10 street
9 service road
8 dirt road
7 parking lot road
6 private road
5 walking trail
4 pedestrian bdwk
3 stairway
2 railroad
1 runway
type
1 street
2 primary street
3 freeway
4 ramp
5 walking trail
6 major hwy
7 minor hwy
8 dirt
9
10 ped boardwalk
11
12
13
14
15
16 stairway
17 private road
18 railroad
19 runway
20 parking lot road
21 service road
SuperDave1426 wrote:So, no word on why when looking for ${typeRank} values that used to highlight Private, PLR & Dirt Roads no longer works?
voludu2 wrote:SuperDave, is this Mall in Reno within your editable area?
Validator is designed to only check segments you can edit.
Just for you, I strove to test this properly, in a way that anyone can replicate:
HOW I TESTED
I disabled EVERY WME script other than validator. I picked a reproducible PL from your image: https://www.waze.com/editor/?env=usa&lo ... s=74223083
And I constructed a typeRank filter to highlight every road with a numeric typeRank
${typeRank}
/[0-9].*/
WHAT I OBSERVED:
* What I see is all roads I can edit highlighted
+ In Reno -- 0 roads
+ In my editable area -- everything not locked above my rank
* Nothing highlighted outside my editable areas.
* If I select a segment outside my editable area with a lock level < or = my editing rank, then the left pane says " User-defined custom check (green)" even though it is not highlighted
* If I select a segment with a lock level > my editing rank, then the left pane says "The segment is not checked"
PesachZ wrote:While we're on the topic you can substitute [0-9] with /d
So a search for ^/d+$ will find any string of any length containing exclusively numbers.
For more details see RegEx Tutorial
Sent using Tapatalk for Android 4.4.2
carloslaso wrote:I think I have searched but I have found nothing about FW, MH and mH with city names, I tried some Regex and failed
${typeRank}:${city}
/1[3-5]:.+$/
Return to Addons, Extensions, and Scripts
Users browsing this forum: No registered users