This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// sucksha1 | |
// | |
// Created by Dagu on 2018/8/20. | |
// Copyright © 2018年 ORANCORP. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <CommonCrypto/CommonCrypto.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *str = @"666666[url:mLbSZ9EFBHifL3QCnLAZ2Kw8r5z64x2LhhPoxiTSV+Y=]《恶魔总裁的祭品新娘》666666,666666[url:mLbSZ9EFBHhhhhhhhhhhh8r5z64x2LhhPoxiTSV+Y=]《龙娘777》666666,666666[url:mLbSZ9EFBHhhhshitshithhhh8r5z64x2LhhPoxiTSV+Y=]《😂神特么emoji里没有屎》666666"; | |
NSString *regexStr = @"\\[url:[\\w+=]+]《.*?》"; | |
NSError *error; | |
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:regexStr options:NSRegularExpressionDotMatchesLineSeparators error:&error ]; | |
NSArray *arr = [regex matchesInString:str options:NSMatchingReportProgress range:NSMakeRange(0, str.length)];; | |
for (NSTextCheckingResult *match in arr) { | |
NSRange range = [match range]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="jumbotron"> | |
<h1 class="text-center">防火长城</h1> | |
<h2 class="text-center"><em>咱们俗称的“墙”</em></h2> | |
<div> | |
<div class="thumbnail"> | |
<img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Fang_binxing.jpg/220px-Fang_binxing.jpg" alt="被认为是防火长城主要设计者的方滨兴" /> | |
<p class="text-center">据说是墙他爹</p> | |
</div> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Result: 1 | |
Items { | |
TemplateId: "BADGE_BATTLE_ATTACK_WON" | |
Badge { | |
BadgeType: BADGE_BATTLE_ATTACK_WON | |
BadgeRanks: 4 | |
Targets: "\nd\350\007" | |
} | |
} | |
Items { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I can create but can not read! |