Regex expression for various conidtions


I hope everyone is doing great!

I need your help. I am not so much perfect with regex. What I want to do is

Input = /smithwicks-ale-270439#.YS_D8NNKj0o
Output = 270439

Input = /270439#.YS_D8NNKj0o
Output = 270439

Please tell me how can I achieve it.

Source: JavaSript – Stack Overflow

December 3, 2021
Category : News
Tags: javascript | php | regex | regex-lookarounds

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.