Closed

Construct a RegEx statement

I need a regex to not only find a number in the format 'nnn nnn nnn' but to also perform an algorithm on the digits. The algorithm can be done by find and replace and tally marks and not math functions. For instance first number 5 multiplied by check digit 2 would be 10 tally marks. this is done on all 9 numbers. Then we divide by replacing a number tally marks with a different mark. So 10 tally marks where we replace 4 with the alternative mark would leave 2 original tally marks. If there are any of the of the original tally marks left then the number is not an integer and not a match.

I am hopeful this is possible due to the conversation here:-

[login to view URL]

Some folks have managed to get a regular expression to match prime numbers:-

[login to view URL]

We can only use standard regex (no script, perl etc.), our implementation is basically these:-

[login to view URL]

[login to view URL]

[login to view URL]

There is a really good chance this is not possible. Feel free to call me crazy. However we are using software that does not support anything but regex at the crucial step.

Skills: Regular Expressions

See more: mysql regular expression perl, perl execute sql statement, mysql translate perl regular expression, javascript regex test, regex match string, sed regex tester, regex javascript, regular expression tutorial, regex c#, regular expression examples, c# regex tester, regular expressions wiki syntax, wiki text regex parser, regular expressions wiki markup, wiki parser wikipedia, wiki markup java regex parser, perl top linux regular expressions, expression regular read table, perl xml html database wikipedia, wiki markup wikipedia parse

About the Employer:
( 0 reviews ) north sydney, Australia

Project ID: #18885063

2 freelancers are bidding on average $38 for this job

$25 AUD in 3 days
(0 Reviews)
0.0
itramsin

Hi, let me know if you want to achieve 5his using a perl script. if so, I can do it for you. thanks,

$50 AUD in 7 days
(0 Reviews)
0.0