Skip to content
Advertisement

Tag: regex

how do i allow space in regex in mod_rewrite engine

i have a regex that i want it to allow white spaces. this regex i am using is in the .htaccess file. whenever i put the s it makes the whole regex not work what can i do to make it allow white spaces and work? this is my regex: this is my full rewrite rule, when i put s

Check if string have specific number of symbols

In trying to figure out how to do it with preg_match, but I’m left with no clue. So what I’m trying is Answer I know you said preg_match, but there is a specific PHP function for this. Use substr_count() 🙂

Regex: how to add a capture group?

I currently have this regex: [(?:w+*?s+)?([^][]+)] I want to add another capture group, so I can capture the text value before the groups. For example: Je naam (verplicht) [text* your-test] …

Regex for FIGI numbers

I am trying to write some regex to match FIGI numbers. FIGI numbers have 12 characters and are built in the following structure: A two-letter prefix, excluding (BS, BM, GG, GB, GH, KY, VG) G as the …

Advertisement