Skip to main content

.Net Cobol

  • January 30, 2017
  • 2 replies
  • 0 views

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 ;

2 replies

  • January 30, 2017

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#


  • January 30, 2017

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!