Jump to content

User talk:Qwerfjkl/sandbox/23

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

OMG

[edit]

qwerfjkl Hey it works!!! Thanks a lot for solving the regex problem. Itcouldbepossible Talk 12:15, 19 June 2022 (UTC)[reply]

@Qwerfjkl But why doesn't (?<={\{ *Infobox television[^\}]+\| *image_size= *= *)(px): work for the removing the px from the size? Itcouldbepossible Talk 12:19, 19 June 2022 (UTC)[reply]
@Itcouldbepossible, The double equals sign? Should be:
(?<={\{ *Infobox television[^\}]+\| *image_size *= *)(\d+)px → $1 ― Qwerfjkltalk 12:22, 19 June 2022 (UTC)[reply]
@Qwerfjkl But that doesn't work as well. The page skips away just like that. It wasn't happening before I inserted this second regex. Any solution? Itcouldbepossible Talk 12:28, 19 June 2022 (UTC)[reply]
@Itcouldbepossible, I'm currently running another AWB setup for syntaxhighlight. I'll look at this later. ― Qwerfjkltalk 12:38, 19 June 2022 (UTC)[reply]
@QwerfjklNo problem. Please take your time, there is nothing to hurry. Thanks for all your attention. Itcouldbepossible Talk 06:33, 20 June 2022 (UTC)[reply]
@Qwerfjkl Please see this when you get time. (?<={\{ *Infobox television[^\}]+\| *image_size= *= *)(px): this worked in you sandbox, but not on the page. Why? Itcouldbepossible Talk 13:10, 20 June 2022 (UTC)[reply]
@Itcouldbepossible, Have you made sure the erro is actually presnt in the page, and where? I've just edited the sandbox so it includes both errors. If the regex is correct, both should be fixed; otherwise, there's an issue. ― Qwerfjkltalk 13:16, 20 June 2022 (UTC)[reply]
@Qwerfjkl No the image parameter was empty. Itcouldbepossible Talk 13:28, 20 June 2022 (UTC)[reply]
@Itcouldbepossible, then what did you expect to happen? How can it fix the error if the error isn't present (or am I misunderstanding)? ― Qwerfjkltalk 20:37, 23 June 2022 (UTC)[reply]
@Qwerfjkl Actually sorry, it is not you who is misunderstanding, but it was my fault in phrasing the sentence actually. I meant to say, ok, if the regex doesn't find anything matching, then it can skip and go to the next page. Instead it wants to make this edit. Why? I was just asking that. Itcouldbepossible Talk 08:36, 24 June 2022 (UTC)[reply]
┌────────────────────────┘
@Itcouldbepossible, just enable 'Skip if no replacement made'. ― Qwerfjkltalk 12:32, 24 June 2022 (UTC)[reply]
@Qwerfjkl Thanks, but what about the other possible fixes in the category that we had already discussed earlier? Itcouldbepossible Talk 12:34, 24 June 2022 (UTC)[reply]
@Itcouldbepossible, the 'Skip if   no replacement' option will skip if no replacements are made, so if just one replacement is made, it won't skip. ― Qwerfjkltalk 12:37, 24 June 2022 (UTC)[reply]