lorey / social-media-profiles-regexs

:card_index: Extract social media profiles and more with regular expressions
608 stars 74 forks source link

[feature request] Javascript Regex #25

Open shafkathullah opened 3 years ago

shafkathullah commented 3 years ago

JS regex equivalent for all of these be very helpful.

lorey commented 3 years ago

What specifically do you mean? Can you give some examples, please?

shafkathullah commented 3 years ago

These regex only works in Python, most of them are having Python specific syntax, I would love to see JavaScript version too.

shafkathullah commented 3 years ago

stuff like <> syntax would break on ECMA regex spec.

lorey commented 3 years ago

So, if I got that right named capturing groups in JS have a different syntax, but in the end you would just need to delete the P after ? as in ?P<test> vs ?<test>, right?

shafkathullah commented 3 years ago

not sure, might need to try

shafkathullah commented 3 years ago

nonetheless, it be great if a JS version is available ready to use!