Skip to main content

What is the .net cobol equivalent to the following C# code?  I just need to know the equivalent to the operator and how I would write score in .net cobol.

  int score = 1;

if (Regex.Match(password, @"/.[!,@,#,$,%,^,&,*,?,_,~,-,£,(,)]/", RegexOptions.ECMAScript))

  score ;

What is the .net cobol equivalent to the following C# code?  I just need to know the equivalent to the operator and how I would write score in .net cobol.

  int score = 1;

if (Regex.Match(password, @"/.[!,@,#,$,%,^,&,*,?,_,~,-,£,(,)]/", RegexOptions.ECMAScript))

  score ;

Unless I am missing something,

you could do this:  Add 1 to score

or this:  Compute score = score 1

or this:  Set score = score 1

To my knowledge, there is no built-in increment or decrements operator like there is in c or c#


What is the .net cobol equivalent to the following C# code?  I just need to know the equivalent to the operator and how I would write score in .net cobol.

  int score = 1;

if (Regex.Match(password, @"/.[!,@,#,$,%,^,&,*,?,_,~,-,£,(,)]/", RegexOptions.ECMAScript))

  score ;

I was seriously overthinking this!