For questions about the function RegularExpression which is used in string patterns in functions as StringCases, StringReplace, StringPosition,StringCount etc.

learn more… | top users | synonyms (1)

31
votes
1answer
604 views

Why is StringExpression faster than RegularExpression?

Edit: as noted by Albert Retey the performance difference is only seen when sub expression extraction is performed. If this test is used below the timings are similar: ...
9
votes
2answers
165 views

Convert recursive RegularExpression to StringExpression?

Consider the following expression for matching balanced brackets: ...
7
votes
3answers
190 views

Does RegularExpression support “(?R)”?

Mathematica's RegularExpression is based on Perl's PCRE library, which supports recursive regular expressions using (?R) (or, ...
11
votes
2answers
417 views

Should I use \\\“ or \” to match " in regex?

Both of the following return True: ...
4
votes
5answers
315 views

A simple StringCases problem

Given this text: text1 = " A Vitamin D Deficiency (ICD-9-CM 268.9) (ICD-9-CM 268.9) 09/11/2015 01 "; Yes, the ICD code values are duplicates- possibly but ...
2
votes
1answer
93 views

Regular Expression - for html objects

I did a previous research about similar questions, but I really am confuse about using html objects. I have the following situation: I Import a html from a url and I need to pick the numbers that ...