Skip to content

Commit

Permalink
[fix] some typos fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinobuAmasaki committed Dec 27, 2023
1 parent a0ee965 commit 35a9182
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
<p>Author: Amasaki Shinobu (雨崎しのぶ)</p>
<p>Twitter: <a href="https://twitter.com/amasaki203"><span
class="citation" data-cites="amasaki203">@amasaki203</span></a></p>
<p>Posted on: 2023-12-25 JST</p>
<p>Posted on: 2023-12-25 JST Updated on: 2023-12-27 JST</p>
<h2 id="abstract">Abstract</h2>
<p><a href="https://github.com/ShinobuAmasaki/forgex">I’ve developed
a new project called ‘Forgex’, an abbreviation for ‘Fortran Regular
Expression’, ant its first release took place on December
Expression’, and its first release took place on December
24th.</a></p>
<p>Forgex is a regular expression engine written entirely in Fortran.
It is a library module that is executable with just a Fortran
Expand All @@ -76,7 +76,7 @@ <h4 id="metacharacters">Metacharacters</h4>
<li><code>*</code>: Match zero or more</li>
<li><code>+</code>: Match one or more</li>
<li><code>?</code>: Match zero or one</li>
<li><code>\</code>: Escape metacharacter</li>
<li><code>\</code>: Escape a metacharacter</li>
<li><code>.</code>: Match any character</li>
</ul>
<h4 id="character-classes">Character Classes</h4>
Expand Down Expand Up @@ -219,8 +219,8 @@ <h3 id="utf-8-string-processing">UTF-8 String Processing</h3>
<p>UTF-8 string can be matched using regular expression patterns just
like ASCII strings. The following example demonstrates matching
Chinese characters. In this example, the variable <code>length</code>
stores the byte length, and for 3-byte characters it is 8 characters
long resulting in a length of 24.</p>
stores the byte length, and for 3-byte characters it is 10 characters
long resulting in a length of 30.</p>
<pre class="fortran"><code>block
character(:), allocatable :: pattern, str
integer :: length
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ Author: Amasaki Shinobu (雨崎しのぶ)
Twitter: [@amasaki203](https://twitter.com/amasaki203)

Posted on: 2023-12-25 JST
Updated on: 2023-12-27 JST

## Abstract

[I've developed a new project called 'Forgex', an abbreviation for 'Fortran Regular Expression', ant its first release took place on December 24th.](https://github.com/ShinobuAmasaki/forgex)
[I've developed a new project called 'Forgex', an abbreviation for 'Fortran Regular Expression', and its first release took place on December 24th.](https://github.com/ShinobuAmasaki/forgex)

Forgex is a regular expression engine written entirely in Fortran. It is a library module that is executable with just a Fortran compiler, devoid of dependencies other than a compiler and Fortran Package Manager (FPM). This library is freely available under the MIT license.

Expand All @@ -38,7 +39,7 @@ This section lists the regular expression patterns that are implemented in Forge
- `*`: Match zero or more
- `+`: Match one or more
- `?`: Match zero or one
- `\`: Escape metacharacter
- `\`: Escape a metacharacter
- `.`: Match any character

#### Character Classes
Expand Down Expand Up @@ -201,7 +202,7 @@ function regex (pattern, str, length) result(res)

### UTF-8 String Processing

UTF-8 string can be matched using regular expression patterns just like ASCII strings. The following example demonstrates matching Chinese characters. In this example, the variable `length` stores the byte length, and for 3-byte characters it is 8 characters long resulting in a length of 24.
UTF-8 string can be matched using regular expression patterns just like ASCII strings. The following example demonstrates matching Chinese characters. In this example, the variable `length` stores the byte length, and for 3-byte characters it is 10 characters long resulting in a length of 30.

```fortran
block
Expand Down

0 comments on commit 35a9182

Please sign in to comment.