The regular expression construct \p{ name } is not working in ruby -


i trying regular expression construct \p{isgreek} , \p{isbasiclatin} getting error

config/initializers/app_constants.rb:13: invalid character property name {isbasiclatin}

it seems ruby not support unicode blocks, support properties , scripts. see character properties on ruby-doc.org.

that means can use unicode scripts:

  • \p{latin}
  • \p{greek}

for introduction unicode properties, scripts , blocks can have @ regular-expressions.info


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -