Re: Regular Expression: Match X, Not Y

2020-04-02 Thread AudioGames . net Forum — Developers room : cartertemm via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

While I didn't move this topic, I can see the distinction and probably would have myself.general game discussionforum wrote:Discuss everything about gaming here: talk about games, post your hi-scores and challenge others for multiplayer games!The topic here doesn't center around a single game as much as a concept that could transfer to multiple, if not games, projects in general.Most casual gamers will have little if any need for regexp's, and the crowd that frequents the developers room would be far more likely to give you an answer.At any rate, it's only a couple keystrokes. As was proven by my response, an admin who moved this in the first place and another user that seemed to feel the same, there are multiple sides here and maybe, just maybe, we aren't questioning your judgment but providing our own? People fuck up, is there any indication that this isn't what happened especially since the majority seem to feel so?When an admin makes a decision, and I'm not saying we're always right (site and forum feedback stands as testament to the fact that we aren't) it isn't done blindly at the beckoning of a report.Instead of flat out assuming we're all less aware of the function of each roomxvordan wrote:I promise you that I know the difference between game development and game discussion, and had I warranted this discussion appropriate for the developer's area, I'd have put it there.A simpleoptimal response wrote:Any reason this was moved? I feel like the topic at hand most closely aligns with discussions that frequently take place in x room for x reasons. Strange that others seem to feel differentlyWould have sufficed and probably been met with a better overall reaction.

URL: https://forum.audiogames.net/post/515400/#p515400




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-30 Thread AudioGames . net Forum — Developers room : Xvordan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Thanks Ian. I'm wondering why you have the period sandwiched between the final sets of closing parentheses? Shouldn't the + be next to the period?Amendment: I'm assuming it was just a typo in Ian's post. I went in to test using ((?!you).+) and it worked. That makes me happy, as what I'm working on doesn't allow (so far as I know) script analysis of the back reference, so I can't even do something like:if "%1" != "you" then
[insert code]
endifI'm curious why this was moved from where I posted it? It's not a question asking about game development. It's not a question talking about coding... It's asking about regular expressions which can be used for trigger matching, ergo to mod a game. This falls into the umbrella of general game discussion more than it does game development. Was it important enough to go to the bother of moving the topic (ironically, to a place where it doesn't belong)?I promise you that I know the difference between game development and game discussion, and had I warranted this discussion appropriate for the developer's area, I'd have put it there. For all you know, I might have been askking about regular expressions in NoteTab's search (which does support regexp). Would this topic be correct for the developer's area then?It's really strange to me that small things like where a topic is posted matter that much to some of you.Kai

URL: https://forum.audiogames.net/post/514149/#p514149




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-30 Thread AudioGames . net Forum — Developers room : Xvordan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Thanks Ian. I'm wondering why you have the period sandwiched between the final sets of closing parentheses? Shouldn't the + be next to the period?Amendment: I'm assuming it was just a typo in Ian's post. I went in to test using ((?!you).+) and it worked. That makes me happy, as what I'm working on doesn't allow (so far as I know) script analysis of the back reference, so I can't even do something like:if "%1" != "you" then
[insert code]
endifI'm curious why this was moved from where I posted it? It's not a question asking about game development. It's not a question talking about coding... It's asking about regular expressions which can be used for trigger matching, ergo to mod a game. This falls into the umbrella of general game discussion more than it does game development. Was it important enough to go to the bother of moving the topic (ironically, to a place where it doesn't belong)?I promise you that I know the difference between game development and game discussion, and had I warranted this discussion appropriate for the developer's area, I'd have put it there. It's really strange to me that small things like where a topic is posted matter that much to some of you.Kai

URL: https://forum.audiogames.net/post/514149/#p514149




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-30 Thread AudioGames . net Forum — Developers room : Xvordan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Thanks Ian. I'm wondering why you have the period sandwiched between the final sets of closing parentheses? Shouldn't the + be next to the period?I'm curious why this was moved from where I posted it? It's not a question asking about game development. It's not a question talking about coding... It's asking about regular expressions which can be used for trigger matching, ergo to mod a game. This falls into the umbrella of general game discussion more than it does game development. Was it important enough to go to the bother of moving the topic (ironically, to a place where it doesn't belong)?I promise you that I know the difference between game development and game discussion, and had I warranted this discussion appropriate for the developer's area, I'd have put it there. It's really strange to me that small things like where a topic is posted matter that much to some of you.Kai

URL: https://forum.audiogames.net/post/514149/#p514149




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-30 Thread AudioGames . net Forum — Developers room : Xvordan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Thanks Ian. I'm wondering why you have the period sandwiched between the final sets of closing parentheses? Shouldn't the + be next to the period?I'm curious why this was moved from where I posted it? It's not a question asking about game development. It's not a game talking about coding... It's asking about regular expressions which can be used for trigger matching, ergo to mod a game. This falls into the umbrella of general game discussion more than it does game development. Was it important enough to go to the bother of moving the topic?Kai

URL: https://forum.audiogames.net/post/514149/#p514149




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — Developers room : Ian Reed via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Try this:The ball hits ((?!you).)+It uses the negative lookahead you mentioned.https://www.regular-expressions.info/lookaround.html

URL: https://forum.audiogames.net/post/513237/#p513237




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — Developers room : Meatbag via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

I think a place for this topic is developers room

URL: https://forum.audiogames.net/post/513188/#p513188




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — Developers room : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Ian's one looks much simpler and smarter. I am always curious about what your primary job / expertise is. I can learn from you a lot.

URL: https://forum.audiogames.net/post/513271/#p513271




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — Developers room : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

^(?!.*The ball hits).*(?=you).*$

URL: https://forum.audiogames.net/post/513216/#p513216




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Ian's one looks much simpler and smarter. I am always curious about what your primary job / expertise is. I can learn from you a lot.

URL: https://forum.audiogames.net/post/513271/#p513271




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Ian's one looks much simpler and smarter. I am always curious about what your primary job / expertice is. I can learn from you a lot.

URL: https://forum.audiogames.net/post/513271/#p513271




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Ian's one looks much simpler and smarter. I am always curious about what your primary job is. I can learn from you a lot.

URL: https://forum.audiogames.net/post/513271/#p513271




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Ian's one looks much simpler and smarter. I always wonder what your primary job is. I can learn from you a lot.

URL: https://forum.audiogames.net/post/513271/#p513271




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : Ian Reed via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

Try this:The ball hits ((?!you).)+It uses the negative lookahead you mentioned.https://www.regular-expressions.info/lookaround.html

URL: https://forum.audiogames.net/post/513237/#p513237




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : nyanchan via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

^(?!.*The ball hits).*(?=you).*$

URL: https://forum.audiogames.net/post/513216/#p513216




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Re: Regular Expression: Match X, Not Y

2020-03-28 Thread AudioGames . net Forum — General Game Discussion : Meatbag via Audiogames-reflector


  


Re: Regular _expression_: Match X, Not Y

I think a place for this topic is developers room

URL: https://forum.audiogames.net/post/513188/#p513188




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector


Regular Expression: Match X, Not Y

2020-03-27 Thread AudioGames . net Forum — General Game Discussion : Xvordan via Audiogames-reflector


  


Regular _expression_: Match X, Not Y

Hey guys. I'm hoping one of you will be a regular _expression_ guru and knows the answer to this problem I've been trying to solve. I'm trying to write a regular _expression_ pattern which will expressly only match if a certain word isn't part of the string.Example: I want to be able to match "The ball hits (.+).In the example above, I only want the match to return true if the string doesn't contain "you". The difficulty is that this message can show up as:The ball hits you.The ball hits a wall.The wall hits Mork.I saw something about lookahead on this regexp guide, but I'm not sure if that's what I should be using for this situation. I have no provision to handle the captured string with script, otherwise this wouldn't be a problem (since I could just do an if check on the back reference).Help?Kai

URL: https://forum.audiogames.net/post/513086/#p513086




-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector