适用于iphone sdk app的最佳正则表达式库? [英] Best regex library for iphone sdk app?

查看:112
本文介绍了适用于iphone sdk app的最佳正则表达式库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对iPhone SDK中提供的正则表达式库感到困惑。例如,RegexLite看起来需要一个动态链接,据我所知,这对于iPhone上的SDK是不可能的。

I'm confused about the regex libraries that are available in the iPhone SDK. For example RegexLite looks like it needs a dynamic link, and from what I understand, this is not possible for the SDK on the iPhone.

我想要一个RegEx库来存储数据验证...哪一个是最好的?

I want a RegEx library for data validation... which one is the best available?

推荐答案

使用RegexKitLite需要只将源文件和头文件拖到项目中,并且工作得很好 - 它提供了你想要的正则表达式库的大部分功能。它基本上只是一个已经存在的底层框架的非常薄的包装。

Using RegexKitLite requires dragging only a source and header file into your project, and works really well - it offers most of the features you'd want from a regex library. It's basically just a very thin wrapper around an underlying framework that's already there.

确保header和.m文件的源类型为sourcecode.c.objc之后您将它们添加到项目中(在给定的源文件上使用获取信息并查看常规选项卡)。

Make sure the source type for header and .m file is "sourcecode.c.objc" after you add them to the project (Use "Get Info" on a given source file and look at the "General" tab).

这篇关于适用于iphone sdk app的最佳正则表达式库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆