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
Post a Comment