jquery - Is it possible to get a regex that select the table flip characters? -


i'm looking select table flip characters using regex

(╯°□°)╯︵ ┻━┻ 

^ guy

so far regex have come

(?i)\b(╯°□°)╯︵ ┻━┻\b 

but doesn't work. guidance appreciated.

-j

this wiktor stribiżew's comment, in answer form, example code:

var flipper = '(╯°□°)╯︵ ┻━┻'; var pattern = /\(╯°□°\)╯︵ ┻━┻/;  window.alert(pattern.test(flipper)); 

the word boundaries (\b) caused regex fail because flipper includes characters not word (a-za-z0-9_) characters.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -