Regular Expressions 101

Save & Share

  • Regex Version: ver. 1
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression
No Match

r"
"
gmx

Test String

Code Generator

Generated Code

#include <StringConstants.au3> ; to declare the Constants of StringRegExp #include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate Local $sRegex = "(?mx)^" & @CRLF & _ "(\d{1,3})\s+" & @CRLF & _ "(?:(?![\d,.]+\n).)+" & @CRLF & _ "([\d.,]+)\n" Local $sString = "Adjustment of Profits Computation" & @CRLF & _ "" & @CRLF & _ " Turnover from Trade or Profession 108,036" & @CRLF & _ "" & @CRLF & _ " Profit Per Accounts 35,226" & @CRLF & _ "" & @CRLF & _ "Addback: Disallowable Expenditure" & @CRLF & _ "" & @CRLF & _ " Depreciation 325" & @CRLF & _ "" & @CRLF & _ " Entertaining 29" & @CRLF & _ "" & @CRLF & _ " - 354" & @CRLF & _ "" & @CRLF & _ "Deduct: Allowances and Other Deductions" & @CRLF & _ "" & @CRLF & _ " Capital Allowances 1,337" & @CRLF & _ "" & @CRLF & _ " 34,243 (1,337)" & @CRLF & _ "" & @CRLF & _ " Adjusted Case I Profit 34,243" & @CRLF & _ "" & @CRLF & _ "Losses Memorandum 1 Trade Property" & @CRLF & _ "" & @CRLF & _ " Losses Brought Forward 16,758 -" & @CRLF & _ "" & @CRLF & _ " Used in this Computation Against Trading Profits (16,758) - (16,758)" & @CRLF & _ "" & @CRLF & _ " Used in this Computation Against General Profits -" & @CRLF & _ "" & @CRLF & _ " Net Trading and Professional Profit 17,485" & @CRLF & _ "" & @CRLF & _ "Losses Memorandum 2 Trade Property" & @CRLF & _ "" & @CRLF & _ "Losses Carried Back from Later Period to be Used Against -" & @CRLF & _ "" & @CRLF & _ " General Profits" & @CRLF & _ "" & @CRLF & _ " Used in this Computation Against General Profits -" & @CRLF & _ "" & @CRLF & _ " Losses from Current Period - -" & @CRLF & _ "" & @CRLF & _ " Loss Surrendered for R & D Credit -" & @CRLF & _ "" & @CRLF & _ "Losses Available after Loss Surrendered for R & D Credit - -" & @CRLF & _ "" & @CRLF & _ " Used in this Computation Against General Profits - - -" & @CRLF & _ "" & @CRLF & _ " Losses Carried Back to Earlier Period - Terminal loss" & @CRLF & _ "" & @CRLF & _ " claim? [Y/N]" & @CRLF & _ "" & @CRLF & _ " Losses Carried Forward - -" & @CRLF & _ "" & @CRLF & _ " General Profits Before Other Deductions and Reliefs 17,485" & @CRLF & _ "" & @CRLF & _ " Losses Used in this Computation -" & @CRLF & _ "" & @CRLF & _ " Carried Back from Later Period [Trade], Current Year [Trade/Property]" & @CRLF & _ "" & @CRLF & _ " Profits Chargeable to Corporation Tax 17,485" & @CRLF & _ "" & @CRLF & _ "Computation Tax Payable Calculation" & @CRLF & _ "" & @CRLF & _ " Financial Years beginning 1 April: Profit Tax Rates" & @CRLF & _ "" & @CRLF & _ " 2015 1,485 20% 297.00" & @CRLF & _ "" & @CRLF & _ " 2016 16,000 20% 3,200.00" & @CRLF & _ "" & @CRLF & _ " Corporation Tax Payable 3,497.00" & @CRLF & _ "" & @CRLF & _ "" & @CRLF & _ "Capital Allowances Summary" & @CRLF & _ "" & @CRLF & _ " Main Pool Special Rate Pool Single Assets Short Single Assets" & @CRLF & _ "" & @CRLF & _ " Life Expensive Cars" & @CRLF & _ "" & @CRLF & _ "WDV Brought Forward - - - -" & @CRLF & _ "" & @CRLF & _ " Non-FYA - - -" & @CRLF & _ "" & @CRLF & _ "Additions FYA @ 100% -" & @CRLF & _ "" & @CRLF & _ " AIA Qualifying 1,337 - -" & @CRLF & _ "" & @CRLF & _ "AIA Claimed (1,337) - -" & @CRLF & _ "" & @CRLF & _ "Disposals - - - -" & @CRLF & _ "" & @CRLF & _ "WDA Claimed - - - -" & @CRLF & _ "" & @CRLF & _ "Balancing Allowance - - - -" & @CRLF & _ "" & @CRLF & _ "Balancing Charge - - - -" & @CRLF & _ "" & @CRLF & _ "WDV Carried Forward - - - -" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 2" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ " Company Tax Return" & @CRLF & _ "" & @CRLF & _ "HM Revenue & CT600 (2017) Version 3" & @CRLF & _ "" & @CRLF & _ "Customs for accounting periods starting on or after 1 April 2015" & @CRLF & _ "" & @CRLF & _ "Your Company Tax Return" & @CRLF & _ "" & @CRLF & _ "If we send the company a Notice to deliver a Company Tax Return it has to comply by the filing date or we charge a penalty, even if there" & @CRLF & _ "" & @CRLF & _ "is no tax to pay." & @CRLF & _ "" & @CRLF & _ "A return includes a Company Tax Return form, any supplementary pages, accounts, computations and any relevant information. The" & @CRLF & _ "" & @CRLF & _ "CT600 Guide tells you how the return must be formatted and delivered. It contains general information you may need to deliver your" & @CRLF & _ "" & @CRLF & _ "return, links to more detailed advice and box-by–box guidance for this form and the supplementary pages." & @CRLF & _ "" & @CRLF & _ "The forms in the CT600 series set out the information we need and provide a standard format for calculations." & @CRLF & _ "" & @CRLF & _ "Company information" & @CRLF & _ "" & @CRLF & _ "1 Company name Test Case Ltd" & @CRLF & _ "" & @CRLF & _ "2 Company registration number 012312244" & @CRLF & _ "" & @CRLF & _ "3 Tax reference 123123123" & @CRLF & _ "" & @CRLF & _ "4 Type of company" & @CRLF & _ "" & @CRLF & _ "About this return" & @CRLF & _ "" & @CRLF & _ " This is the above company's return for the period" & @CRLF & _ "" & @CRLF & _ "30 from DD/MM/YYYY 35 to DD/MM/YYYY" & @CRLF & _ "" & @CRLF & _ " 01/03/2016 ct2017v1 28/02/2017" & @CRLF & _ "" & @CRLF & _ " Put an ‘X’ in the appropriate box(es) below" & @CRLF & _ "" & @CRLF & _ "40 A repayment is due for this return period" & @CRLF & _ "" & @CRLF & _ "45 Claim or relief affecting an earlier period" & @CRLF & _ "" & @CRLF & _ "50 Making more than one return for this company now" & @CRLF & _ "" & @CRLF & _ "55 This return contains estimated figures" & @CRLF & _ "" & @CRLF & _ "60 Company part of a group that is not small" & @CRLF & _ "" & @CRLF & _ "65 Notice of disclosable avoidance schemes" & @CRLF & _ "" & @CRLF & _ " Transfer pricing" & @CRLF & _ "" & @CRLF & _ "70 Compensating adjustment claimed" & @CRLF & _ "" & @CRLF & _ "75 Company qualifies for SME exemption" & @CRLF & _ "" & @CRLF & _ " Accounts and computations" & @CRLF & _ "" & @CRLF & _ "80 I attach accounts and computations for the period to which this return relates X" & @CRLF & _ "" & @CRLF & _ "85 I attach accounts and computations for a different period" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 1" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "About this return continued" & @CRLF & _ "" & @CRLF & _ "90 If you are not attaching the accounts and computations, say why not" & @CRLF & _ "" & @CRLF & _ " Supplementary pages enclosed" & @CRLF & _ "" & @CRLF & _ "95 Loans to participators by close companies - form CT600A" & @CRLF & _ "" & @CRLF & _ "100 Controlled foreign companies and foreign permanent establishment exemptions - form CT600B" & @CRLF & _ "" & @CRLF & _ "105 Group and consortium - form CT600C" & @CRLF & _ "" & @CRLF & _ "110 Insurance - form CT600D" & @CRLF & _ "" & @CRLF & _ "115 Charities and Community Amateur Sports Clubs (CASCs) - form CT600E" & @CRLF & _ "" & @CRLF & _ "120 Tonnage Tax - form CT600F" & @CRLF & _ "" & @CRLF & _ "125 form CT600G (not currently used)" & @CRLF & _ "" & @CRLF & _ "130 Cross-border Royalties - form CT600H" & @CRLF & _ "" & @CRLF & _ "135 Supplementary charge in respect of ring fence trades - form CT600I" & @CRLF & _ "" & @CRLF & _ "140 Disclosure of Tax Avoidance Schemes - form CT600J" & @CRLF & _ "" & @CRLF & _ "141 Restitution Tax - form CT600K" & @CRLF & _ "" & @CRLF & _ "Tax calculation" & @CRLF & _ "" & @CRLF & _ "Turnover" & @CRLF & _ "" & @CRLF & _ "145 Total turnover from trade 108,036" & @CRLF & _ "" & @CRLF & _ "150 Banks, building societies, insurance companies and other financial concerns –" & @CRLF & _ "" & @CRLF & _ " put an ‘X’ in this box if you do not have a recognised turnover and have not made an entry in box 145" & @CRLF & _ "" & @CRLF & _ "Income" & @CRLF & _ "" & @CRLF & _ "155 Trading profits 34,243" & @CRLF & _ "" & @CRLF & _ "160 Trading losses brought forward claimed against profits 16,758" & @CRLF & _ "" & @CRLF & _ "165 Net trading profits – box 155 minus box 160 17,485" & @CRLF & _ "" & @CRLF & _ "170 Bank, building society or other interest, and profits from -" & @CRLF & _ "" & @CRLF & _ " non-trading loan relationships" & @CRLF & _ "" & @CRLF & _ "172 Put an ‘X’ in box 172 if the figure in box 170 is net of" & @CRLF & _ "" & @CRLF & _ " carrying back a deficit from a later accounting period" & @CRLF & _ "" & @CRLF & _ "175 Annual payments not otherwise charged to Corporation Tax -" & @CRLF & _ "" & @CRLF & _ " and from which Income Tax has not been deducted" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 2" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Income continued" & @CRLF & _ "" & @CRLF & _ "180 Non-exempt dividends or distributions from non-UK resident companies -" & @CRLF & _ "" & @CRLF & _ "185 Income from which Income Tax has been deducted -" & @CRLF & _ "" & @CRLF & _ "190 Income from a property business -" & @CRLF & _ "" & @CRLF & _ "195 Non-trading gains on intangible fixed assets -" & @CRLF & _ "" & @CRLF & _ "200 Tonnage Tax profits -" & @CRLF & _ "" & @CRLF & _ "205 Income not falling under any other heading -" & @CRLF & _ "" & @CRLF & _ "Chargeable gains" & @CRLF & _ "" & @CRLF & _ "210 Gross chargeable gains -" & @CRLF & _ "" & @CRLF & _ "215 Allowable losses including losses brought forward -" & @CRLF & _ "" & @CRLF & _ "220 Net chargeable gains - box 210 minus box 215 -" & @CRLF & _ "" & @CRLF & _ "Profits before deductions and reliefs" & @CRLF & _ "" & @CRLF & _ "225 Losses brought forward against certain investment income -" & @CRLF & _ "" & @CRLF & _ "230 Non-trade deficits on loan relationships (including interest) and derivative contracts -" & @CRLF & _ "" & @CRLF & _ " (financial instruments) brought forward" & @CRLF & _ "" & @CRLF & _ "235 Profits before other deductions and reliefs - net sum of boxes 165 to 205 and 220 17,485" & @CRLF & _ "" & @CRLF & _ " minus sum of boxes 225 and 230" & @CRLF & _ "" & @CRLF & _ "Deductions and reliefs" & @CRLF & _ "" & @CRLF & _ "240 Losses on unquoted shares -" & @CRLF & _ "" & @CRLF & _ "245 Management expenses -" & @CRLF & _ "" & @CRLF & _ "250 UK property business losses for this or previous accounting period -" & @CRLF & _ "" & @CRLF & _ "255 Capital allowances for the purposes of management of the business -" & @CRLF & _ "" & @CRLF & _ "260 Non-trade deficits for this accounting period from loan relationships and derivative -" & @CRLF & _ "" & @CRLF & _ " contacts (financial instruments)" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 3" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Deductions and reliefs continued" & @CRLF & _ "" & @CRLF & _ "265 Non-trading losses on intangible fixed assets -" & @CRLF & _ "" & @CRLF & _ "275 Total trading losses of this or a later accounting period 155123" & @CRLF & _ "" & @CRLF & _ "280 Put an ‘X’ in box 280 if amounts carried back from later accounting periods are" & @CRLF & _ "" & @CRLF & _ " included in box 275" & @CRLF & _ "" & @CRLF & _ "290 Non-trade capital allowances -" & @CRLF & _ "" & @CRLF & _ "295 Total of deductions and reliefs – total of boxes 240 to 275 and 290 -" & @CRLF & _ "" & @CRLF & _ "300 Profits before qualifying donations and group relief – box 235 minus box 295 17,485" & @CRLF & _ "" & @CRLF & _ "305 Qualifying donations -" & @CRLF & _ "" & @CRLF & _ "310 Group relief -" & @CRLF & _ "" & @CRLF & _ "315 Profits chargeable to Corporation Tax – box 300 minus boxes 305 and 310 17,485" & @CRLF & _ "" & @CRLF & _ "320 Ring fence profits included -" & @CRLF & _ "" & @CRLF & _ "Tax calculation" & @CRLF & _ "" & @CRLF & _ "Enter how much profit has to be charged and at what rate" & @CRLF & _ "" & @CRLF & _ " Financial Amount of profit Rate of tax Tax" & @CRLF & _ "" & @CRLF & _ " year (yyyy) %" & @CRLF & _ "" & @CRLF & _ "330 2015 335 1,485 340 20.00% 345 297.00" & @CRLF & _ "" & @CRLF & _ " 350 - 355 360 -" & @CRLF & _ "" & @CRLF & _ " 365 - 370 375 -" & @CRLF & _ "" & @CRLF & _ "380 2016 385 16,000 390 20.00% 395 3,200.00" & @CRLF & _ "" & @CRLF & _ " 400 - 405 410 -" & @CRLF & _ "" & @CRLF & _ " 415 - 420 425 -" & @CRLF & _ "" & @CRLF & _ "Corporation Tax - total of boxes 345, 360, 375, 395, 410 and 425 430 3,497.00" & @CRLF & _ "" & @CRLF & _ "Marginal relief for ring fence trades 435 -" & @CRLF & _ "" & @CRLF & _ "Corporation Tax chargeable - box 430 minus box 435 440 3,497.00" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 4" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Reliefs and deductions in terms of tax" & @CRLF & _ "" & @CRLF & _ "445 Community investment relief -" & @CRLF & _ "" & @CRLF & _ "450 Double taxation relief -" & @CRLF & _ "" & @CRLF & _ "455 Put an ‘X’ in box 455 if box 450 includes an underlying Rate relief claim" & @CRLF & _ "" & @CRLF & _ "460 Put an ‘X’ in box 460 if box 450 includes any amount carried back from a later" & @CRLF & _ "" & @CRLF & _ " period" & @CRLF & _ "" & @CRLF & _ "465 Advanced Corporation Tax -" & @CRLF & _ "" & @CRLF & _ "470 Total reliefs and deduction in terms of tax - total of boxes 445, 450 and 465 -" & @CRLF & _ "" & @CRLF & _ "Calculation of tax outstanding or overpaid" & @CRLF & _ "" & @CRLF & _ "475 Net Corporation Tax liability – box 440 minus box 470 3,497.00" & @CRLF & _ "" & @CRLF & _ "480 Tax payable on loans and arrangements to participators -" & @CRLF & _ "" & @CRLF & _ "485 Put an ‘X’ in box 485 if you completed box A70 in the supplementary pages" & @CRLF & _ "" & @CRLF & _ " CT600A" & @CRLF & _ "" & @CRLF & _ "490 CFC tax payable -" & @CRLF & _ "" & @CRLF & _ "495 Bank levy payable -" & @CRLF & _ "" & @CRLF & _ "496 Bank surcharge payable -" & @CRLF & _ "" & @CRLF & _ "500 CFC tax, bank levy and bank surcharge payable – total of box 490, 495 and 496 -" & @CRLF & _ "" & @CRLF & _ "505 Supplementary charge (ring fence trades) payable -" & @CRLF & _ "" & @CRLF & _ "510 Tax chargeable – total of boxes 475, 480, 500 and 505 3,497.00" & @CRLF & _ "" & @CRLF & _ "515 Income Tax deducted from gross income included in profits -" & @CRLF & _ "" & @CRLF & _ "520 Income Tax repayable to the company -" & @CRLF & _ "" & @CRLF & _ "525 Self-assessment of tax payable before restitution tax – box 510 minus box 515 3,497.00" & @CRLF & _ "" & @CRLF & _ "527 Restitution tax -" & @CRLF & _ "" & @CRLF & _ "528 Self-assessment of tax payable – total of boxes 525 and 527 3,497.00" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 5" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Tax reconciliation" & @CRLF & _ "" & @CRLF & _ "530 Research and Development credit -" & @CRLF & _ "" & @CRLF & _ "535 (not currently used)" & @CRLF & _ "" & @CRLF & _ "540 Creative tax credit -" & @CRLF & _ "" & @CRLF & _ "545 Total of Research and Development credit, and creative tax credit – total boxes 530 -" & @CRLF & _ "" & @CRLF & _ " and 540" & @CRLF & _ "" & @CRLF & _ "550 Land remediation tax credit -" & @CRLF & _ "" & @CRLF & _ "555 Life assurance company tax credit -" & @CRLF & _ "" & @CRLF & _ "560 Total land remediation and life assurance company tax credit – total box 550 and -" & @CRLF & _ "" & @CRLF & _ " 555" & @CRLF & _ "" & @CRLF & _ "565 Capital allowances first-year tax credit -" & @CRLF & _ "" & @CRLF & _ "570 Surplus Research and Development credits or creative tax credit payable – box 545 -" & @CRLF & _ "" & @CRLF & _ " minus box 525" & @CRLF & _ "" & @CRLF & _ "575 Land remediation or life assurance company tax credit payable – total of boxes 545 -" & @CRLF & _ "" & @CRLF & _ " and 560 minus boxes 525 and 570" & @CRLF & _ "" & @CRLF & _ "580 Capital allowances first-year tax credit payable – boxes 545, 560 and 565 minus -" & @CRLF & _ "" & @CRLF & _ " boxes 525, 570 and 575" & @CRLF & _ "" & @CRLF & _ "585 Ring fence Corporation Tax included -" & @CRLF & _ "" & @CRLF & _ "590 Ring fence supplementary charge included -" & @CRLF & _ "" & @CRLF & _ "595 Tax already paid (and not already repaid) -" & @CRLF & _ "" & @CRLF & _ "600 Tax outstanding – box 525 minus boxes 545, 560, 565 and 595 3,497.00" & @CRLF & _ "" & @CRLF & _ "605 Tax overpaid including surplus or payable credits – total sum of boxes 545, 560, -" & @CRLF & _ "" & @CRLF & _ " 565 and 595 minus 525" & @CRLF & _ "" & @CRLF & _ "610 Group tax refunds surrendered to this company -" & @CRLF & _ "" & @CRLF & _ "615 Research and Development expenditure credits surrendered to this company -" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 6" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Indicators and information" & @CRLF & _ "" & @CRLF & _ "620 Franked investment income/Exempt ABGH distributions -" & @CRLF & _ "" & @CRLF & _ "625 Number of 51% group companies -" & @CRLF & _ "" & @CRLF & _ " Put an ‘X’ in the relevant boxes, if in the period, the company:" & @CRLF & _ "" & @CRLF & _ "630 should have made (whether it has or not) instalment payments under the Corporation Tax (Instalment Payments)" & @CRLF & _ "" & @CRLF & _ " Regulations 1998" & @CRLF & _ "" & @CRLF & _ "635 is within a group payments arrangement for the period" & @CRLF & _ "" & @CRLF & _ "640 has written down or sold intangible assets" & @CRLF & _ "" & @CRLF & _ "645 has made cross-border royalty payments" & @CRLF & _ "" & @CRLF & _ "Information about enhanced expenditure" & @CRLF & _ "" & @CRLF & _ "Research and Development (R&D) or creative enhanced expenditure" & @CRLF & _ "" & @CRLF & _ "650 Put an ‘X’ in box 650 if the claim is made by a small or medium-sized enterprise (SME), including a SME subcontractor to" & @CRLF & _ "" & @CRLF & _ " a large company" & @CRLF & _ "" & @CRLF & _ "655 Put an ‘X’ in box 655 if the claim is made by a large company" & @CRLF & _ "" & @CRLF & _ "660 R&D enhanced expenditure -" & @CRLF & _ "" & @CRLF & _ "665 Creative enhanced expenditure -" & @CRLF & _ "" & @CRLF & _ "670 R&D and creative enhanced expenditure - total of boxes 660 and 665 -" & @CRLF & _ "" & @CRLF & _ "675 R&D enhanced expenditure of an SME on work sub contracted to it by a large -" & @CRLF & _ "" & @CRLF & _ " company" & @CRLF & _ "" & @CRLF & _ "680 Vaccine research expenditure -" & @CRLF & _ "" & @CRLF & _ "Land remediation enhanced expenditure" & @CRLF & _ "" & @CRLF & _ "685 Enter the total enhanced expenditure -" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 7" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Information about capital allowances and balancing charges" & @CRLF & _ "" & @CRLF & _ "Allowances and charges in calculation of trading profits and losses" & @CRLF & _ "" & @CRLF & _ " Capital allowances Balancing charges" & @CRLF & _ "" & @CRLF & _ "Annual investment allowance 690 1,337" & @CRLF & _ "" & @CRLF & _ "Machinery and plant - special rate pool 695 - 700 -" & @CRLF & _ "" & @CRLF & _ "Machinery and plant - main pool 705 1,337 710 -" & @CRLF & _ "" & @CRLF & _ "Business premises renovation 715 - 720 -" & @CRLF & _ "" & @CRLF & _ "Enterprise zones 721 - 722 -" & @CRLF & _ "" & @CRLF & _ "Zero emissions goods vehicles 723 - 724 -" & @CRLF & _ "" & @CRLF & _ "Other allowances and charges 725 - 730 -" & @CRLF & _ "" & @CRLF & _ "Allowances and charges not included in calculation of trading profits and losses" & @CRLF & _ "" & @CRLF & _ " Capital allowances Balancing charges" & @CRLF & _ "" & @CRLF & _ "Annual investment allowance 735 -" & @CRLF & _ "" & @CRLF & _ "Business premises renovation 740 - 745 -" & @CRLF & _ "" & @CRLF & _ "Enterprise zones 746 - 747 -" & @CRLF & _ "" & @CRLF & _ "Zero emissions goods vehicles 748 - 749 -" & @CRLF & _ "" & @CRLF & _ "Other allowances and charges 750 - 755 -" & @CRLF & _ "" & @CRLF & _ "Qualifying expenditure" & @CRLF & _ "" & @CRLF & _ "760 Machinery and plant on which first year allowance is claimed -" & @CRLF & _ "" & @CRLF & _ "765 Designated environmentally friendly machinery and plant -" & @CRLF & _ "" & @CRLF & _ "770 Machinery and plant on long-life assets and integral features -" & @CRLF & _ "" & @CRLF & _ "775 Other machinery and plant 1,337" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 8" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Losses, deficits and excess amounts" & @CRLF & _ "" & @CRLF & _ "Amount arising" & @CRLF & _ "" & @CRLF & _ " Amount Maximum available for surrender" & @CRLF & _ "" & @CRLF & _ " as group relief" & @CRLF & _ "" & @CRLF & _ "Losses of trades carried on wholly or partly 780 - 785 -" & @CRLF & _ "" & @CRLF & _ "in the UK" & @CRLF & _ "" & @CRLF & _ "Losses of trade carried on wholly outside 790 -" & @CRLF & _ "" & @CRLF & _ "the UK - special rate pool" & @CRLF & _ "" & @CRLF & _ "Non-trading deficits on loan relationships 795 - 800 -" & @CRLF & _ "" & @CRLF & _ "and derivative contracts" & @CRLF & _ "" & @CRLF & _ "UK property business losses 805 - 810 -" & @CRLF & _ "" & @CRLF & _ "Overseas property business 815 -" & @CRLF & _ "" & @CRLF & _ "Losses from miscellaneous transactions 820 -" & @CRLF & _ "" & @CRLF & _ "Capital losses 825 -" & @CRLF & _ "" & @CRLF & _ "Non-trading losses on intangible fixed 830 - 835 -" & @CRLF & _ "" & @CRLF & _ "assets" & @CRLF & _ "" & @CRLF & _ "Excess amounts" & @CRLF & _ "" & @CRLF & _ " Amount Maximum available for surrender" & @CRLF & _ "" & @CRLF & _ " as group relief" & @CRLF & _ "" & @CRLF & _ "Non-trading capital allowances 840 -" & @CRLF & _ "" & @CRLF & _ "Qualifying donations 845 -" & @CRLF & _ "" & @CRLF & _ "Management expenses 850 - 855 -" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 9" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Overpayments and repayments" & @CRLF & _ "" & @CRLF & _ "Small repayments" & @CRLF & _ "" & @CRLF & _ "860 Do not repay sums of - or less" & @CRLF & _ "" & @CRLF & _ " Read the overpayments and repayments section of the Company Tax Return Guide for specific guidance on when and how to" & @CRLF & _ "" & @CRLF & _ " make an entry in this box." & @CRLF & _ "" & @CRLF & _ "Repayments for the period covered by this return" & @CRLF & _ "" & @CRLF & _ "865 Repayment of Corporation Tax -" & @CRLF & _ "" & @CRLF & _ "870 Repayment of Income Tax -" & @CRLF & _ "" & @CRLF & _ "875 Payable Research and Development tax credit -" & @CRLF & _ "" & @CRLF & _ "880 Payable Research and Development expenditure credit -" & @CRLF & _ "" & @CRLF & _ "885 Payable creative tax credit -" & @CRLF & _ "" & @CRLF & _ "890 Payable land remediation of life assurance company tax credit -" & @CRLF & _ "" & @CRLF & _ "895 Payable capital allowances first-year tax credit -" & @CRLF & _ "" & @CRLF & _ "Surrender of tax refund within group" & @CRLF & _ "" & @CRLF & _ " Including surrenders under the Instalment Payments Regulations" & @CRLF & _ "" & @CRLF & _ "900 The following amount is to be surrendered -" & @CRLF & _ "" & @CRLF & _ " Put an 'X' in the appropriate box(es) below" & @CRLF & _ "" & @CRLF & _ " the joint Notice is attached 905" & @CRLF & _ "" & @CRLF & _ " or" & @CRLF & _ "" & @CRLF & _ " will follow 910" & @CRLF & _ "" & @CRLF & _ "915 Please stop repayment of the following amount until we send you the Notice -" & @CRLF & _ "" & @CRLF & _ "Bank details (for person to whom a repayment is to be made)" & @CRLF & _ "" & @CRLF & _ "920 Name of bank or building society" & @CRLF & _ "" & @CRLF & _ "925 Branch sort code" & @CRLF & _ "" & @CRLF & _ "930 Account number" & @CRLF & _ "" & @CRLF & _ "935 Name of account" & @CRLF & _ "" & @CRLF & _ "940 Building society reference" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 10" & @CRLF & _ " Rotaready Limited (UTR: 6757612933) IRmark: 4BM4SIXJ6OVED4ZLXHJWOEV7SEG3LULX" & @CRLF & _ "" & @CRLF & _ "- Prepared by: Howlader & Co on 16/11/2017 at 09:30" & @CRLF & _ "" & @CRLF & _ "Payments to a person other than the company" & @CRLF & _ "" & @CRLF & _ "945 Complete the authority below if you want the repayment to be made to a person other than the company" & @CRLF & _ "" & @CRLF & _ " I, as (enter status - company secretary, treasurer, liquidator or authorised agent, etc.)" & @CRLF & _ "" & @CRLF & _ "950 of (enter company name)" & @CRLF & _ "" & @CRLF & _ "955 authorise (enter name)" & @CRLF & _ "" & @CRLF & _ "960 of address (enter address)" & @CRLF & _ "" & @CRLF & _ " Postcode" & @CRLF & _ "" & @CRLF & _ "965 Nominee reference" & @CRLF & _ "" & @CRLF & _ " to receive payment on company's behalf" & @CRLF & _ "" & @CRLF & _ "970 Name" & @CRLF & _ "" & @CRLF & _ "Declaration" & @CRLF & _ "" & @CRLF & _ " Declaration" & @CRLF & _ "" & @CRLF & _ " I declare that the information I have given on this Company Tax Return and any supplementary pages is correct and complete" & @CRLF & _ "" & @CRLF & _ " to the best of my knowledge and belief." & @CRLF & _ "" & @CRLF & _ " I understand that giving false information in the return, or concealing any part of the company’s profits or tax payable, can lead" & @CRLF & _ "" & @CRLF & _ " to both the company and me being prosecuted." & @CRLF & _ "" & @CRLF & _ "975 Name" & @CRLF & _ "" & @CRLF & _ " James Harvey" & @CRLF & _ "" & @CRLF & _ "980 Date DD/MM/YYYY" & @CRLF & _ "" & @CRLF & _ " 16/11/2017 16/11/2018" & @CRLF & _ "" & @CRLF & _ "985 Status" & @CRLF & _ "" & @CRLF & _ " Director" & @CRLF & _ "" & @CRLF & _ "For period 01/03/2016 to 28/02/2017 Page 11" & @CRLF & _ " " Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYGLOBALFULLMATCH) Local $aFullArray[0] For $i = 0 To UBound($aArray) -1 _ArrayConcatenate($aFullArray, $aArray[$i]) Next $aArray = $aFullArray ; Present the entire match result _ArrayDisplay($aArray, "Result")

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm