---
title: "Discussion on \"Regular Expressions - Match First or Last Characters\" | Hashnode"
description: "Discussion on \"Regular Expressions - Match First or Last Characters\". Match a string that starts with or ends with a specified search term"
url: "https://hashnode.com/posts/regular-expressions-match-first-or-last-characters/60e81bbc6d962b01bdeca4a7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Regular Expressions - Match First or Last Characters](https://dev.jaderickerts.com/regular-expressions-match-first-or-last-characters?utm_source=hashnode&utm_medium=feed)

Match a string that starts with or ends with a specified search term

Jul 9, 2021 · 3 min read · dev.jaderickerts.com  
Read the article

-   [#regex](https://hashnode.com/tag/regex)
-   [#coding](https://hashnode.com/tag/coding)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Jade Rickerts](https://hashnode.com/@lknant)

@lknant

  
[View profile](https://hashnode.com/@lknant)

Business Analyst | .NET Developer

## Responses 2

Markdown supported · ⌘↵ to post

[Charith Rathnayake](https://hashnode.com/@rustedred)

[Jul 30, 2021](https://hashnode.com/posts/regular-expressions-match-first-or-last-characters/60e81bbc6d962b01bdeca4a7/comment/610356319036db5b3513b578)

Its been a while since I checked out a C# code. Its been one of my main languages but now I only use it within the Unity engine.

Since you've written it so clearly and concisely, It was easy for me to follow through. Looking forward for more :)

[Jade Rickerts](https://hashnode.com/@lknant)

[Jul 30, 2021](https://hashnode.com/posts/regular-expressions-match-first-or-last-characters/60e81bbc6d962b01bdeca4a7/comment/610356319036db5b3513b578#reply-61039b449036db5b3513bb1b)

Thanks. I means a lot to read that. I'm not always sure if I'm articulate enough to share my ideas and explain my code. Your comment gave me a confidence boost. 💪

[Jade Rickerts](https://hashnode.com/@lknant)

[Jul 9, 2021](https://hashnode.com/posts/regular-expressions-match-first-or-last-characters/60e81bbc6d962b01bdeca4a7/comment/60e81d526d962b01bdeca4df)

Photo by [Lukas](https://www.pexels.com/@goumbik?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels) from [Pexels](https://www.pexels.com/photo/graph-and-line-chart-printed-paper-590045/?utm_content=attributionCopyText&utm_medium=referral&utm_source=pexels)
