i try converting my scripts in ACE containing regexp to negative look behind... specifically this regexp:
/(?<![\w])Doraemon(?![\w])/imgin ruby that works... in JS it doesn't...
i also miss wheren i can use #{} to dynamically change my regexp from ruby...
ex:
/(?<![\w])#{mykey}(?![\w])/imgi'm currently reading some workaround from stackoverflow... hope that i can found some answer from them.
just want to share this for fellow ruby scripter that just recently learning JS...
Ruby is like driving plane using AutoPilot while JS is driving plane using ManualPilot. T.T
/(?<![\w])Doraemon(?![\w])/imgin ruby that works... in JS it doesn't...
i also miss wheren i can use #{} to dynamically change my regexp from ruby...
ex:
/(?<![\w])#{mykey}(?![\w])/imgi'm currently reading some workaround from stackoverflow... hope that i can found some answer from them.
just want to share this for fellow ruby scripter that just recently learning JS...
Ruby is like driving plane using AutoPilot while JS is driving plane using ManualPilot. T.T