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
549 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: ...
8
votes
2answers
103 views

Convert recursive RegularExpression to StringExpression?

Consider the following expression for matching balanced brackets: ...
11
votes
2answers
375 views

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

Both of the following return True: ...
6
votes
3answers
143 views

Does RegularExpression support “(?R)”?

Mathematica's RegularExpression is based on Perl's PCRE library, which supports recursive regular expressions using (?R) (or, ...
4
votes
5answers
283 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
82 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 ...