Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Converting regex statement #3

Closed
believer opened this issue Jul 2, 2020 · 2 comments
Closed

Converting regex statement #3

believer opened this issue Jul 2, 2020 · 2 comments

Comments

@believer
Copy link

believer commented Jul 2, 2020

This regex statement gives me all kinds of errors

let titleRegex = %re({|/((^[a-zåäö\-\:\s]+\d{1,}[:-]?\w?)|^[a-zåäö]+)|(([a-zåäö\-\/]\s?)+,\s([a-zåäö\-]\s?)+)|([a-zåäö/]+ till salu)/ig|})

It seems like it's giving me two errors for åäö, one empty error and one highlighting the actual character.

Screenshot 2020-07-02 08 23 46
Screenshot 2020-07-02 08 23 51
Screenshot 2020-07-02 08 23 57
Screenshot 2020-07-02 08 24 05
Screenshot 2020-07-02 08 24 11
Screenshot 2020-07-02 08 24 18
Screenshot 2020-07-02 08 24 23
Screenshot 2020-07-02 08 24 31

@painedpineapple
Copy link

Looks like this works,

let titleRegex = %re(`/((^[a-zåäö\-\:\s]+\d{1,}[:-]?\w?)|^[a-zåäö]+)|(([a-zåäö\-\/]\s?)+,\s([a-zåäö\-]\s?)+)|([a-zåäö/]+ till salu)/ig`)

{||} strings seem to be completely replaced with ``

@believer
Copy link
Author

believer commented Jul 3, 2020

Thanks @thislogancall! This was indeed the same issue as #4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants