Timeline for AWK switch case not matching *.html
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5, 2023 at 20:35 | comment | added | Eric Marceau | Thank you all for your comments. Much appreciated. | |
Jul 5, 2023 at 20:31 | vote | accept | Eric Marceau | ||
Jul 4, 2023 at 11:07 | comment | added | Ed Morton |
If you want to match a string that ends in foo just write foo$ . Adding .* in a regexp (or * in a globbing pattern) in front of foo is pointless unless you wanted to capture the matching string to do something with it, which you don't.
|
|
Jul 4, 2023 at 2:51 | comment | added | Reilas | You are referring a glob pattern. Same concept, although it is not, specifically, a "regular expression pattern". | |
Jul 3, 2023 at 23:26 | answer | added | markp-fuso | timeline score: 3 | |
Jul 3, 2023 at 22:18 | comment | added | Ed Morton |
* as the first character in a regexp is undefined behavior per POSIX so YMMV with what any awk would do with that.
|
|
Jul 3, 2023 at 22:01 | comment | added | shellter |
Recall that in RegEx (not file globbing) * means "zero or more of the previous character", you need .*\.html probably. Good luck.
|
|
Jul 3, 2023 at 21:54 | history | asked | Eric Marceau | CC BY-SA 4.0 |