由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - re一问
相关主题
string /File IO processing using Cany way to use regex in Fortran?
请教一个变态的regular expression 替换匹配问题 (转载)
新手VB.net一问装完boost之后还要再装REGEX吗?
如何找出所有的recursive function?RegEx puzzle
c++ string 一问[合集] regular expression for whitespace in path
c++ multi-thread 一问,Can someone help me a quick regex?
question about Design Patterns要不要学习 scripting languages such as Python?
正则表达式的问题 (转载)from beautiful code
相关话题的讨论汇总
话题: perl话题: php话题: regex话题: flavors话题: 一问
进入Programming版参与讨论
1 (共1页)
P****i
发帖数: 12972
1
【 以下文字转载自 Linux 讨论区 】
发信人: PaiMei (白眉), 信区: Linux
标 题: re一问
发信站: BBS 未名空间站 (Tue Nov 21 00:04:19 2006), 站内
如何把一个string的'(*)'都删掉,*是任意sub-string,但不含左右括号。
例子:
aaa(a123)b(cd)(123)edf
=>aaabedf
a*****1
发帖数: 11
2
Well I am not a theoretical guy, the things I can tell you are:
(1) Both Perl and PHP are using NFA, check J. Friedl's book MRE.
(2) You might be right in theorem, while in the real life, different
regex flavors have embedded different functionalities into their
engines, no need to following the dogma in the book.
(3) Regex flavors like Perl and PHP support dynamic regrx constructs,
which makes them more powerful than many other languages in handling
texts.
Good luck.
1 (共1页)
进入Programming版参与讨论
相关主题
from beautiful codec++ string 一问
regex questionc++ multi-thread 一问,
any perl html parser to recommend?question about Design Patterns
GCC TR1 实现regex 没?正则表达式的问题 (转载)
string /File IO processing using Cany way to use regex in Fortran?
请教一个变态的regular expression 替换匹配问题 (转载)
新手VB.net一问装完boost之后还要再装REGEX吗?
如何找出所有的recursive function?RegEx puzzle
相关话题的讨论汇总
话题: perl话题: php话题: regex话题: flavors话题: 一问