Simon
Simon

Reputation: 167

RegEx does not work in MS Word

I'm trying to find all expressions like "6B_479/2013" or "6B_17/2014" in MS Word. Using the (regex101.com says correct expression)

[0-9]{1}[A-Z]{1}[_]{1}[0-9]{2,3}[\/][0-9]{4}

does not work in Word...

Can anyone help me?

Simon

Upvotes: 1

Views: 768

Answers (1)

mvw
mvw

Reputation: 5105

Please try again:

[0-9][A-Z]_[0-9]{2;3}/[0-9]{4}

Tested with Word 2016 (German). Extended Search. Option for wildcards ("Platzhalter") checked.

The separator for the range operator seems to be locale dependent. I need to use a semicolon (;) while a comma (,) is the more common variant.

Upvotes: 3

Related Questions