Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working while trying to parse utf8 unicode data. #41

Open
naeem-shah opened this issue Jul 31, 2021 · 0 comments
Open

Not working while trying to parse utf8 unicode data. #41

naeem-shah opened this issue Jul 31, 2021 · 0 comments

Comments

@naeem-shah
Copy link

I have unicode data i am trying to parse.

I have following regex (?<=ژژ).*(?=ژژ) its working fine on regex101 as you can see following image.
Capture
I am using following code:
ParsedText( text: ''' ژژ صفحہ نمبر 15ژژص ژ1 ’’وَلَقَدْ اَرْسَلْنَا نُوْحاً وَّاِبْرَاہِیْمَ وَجَعَلْنَافِیْ ذُرِّیَّتِہِمَاالنُّبُوَّۃَ وَالْکِتٰبَ فَمِنْہُمْ مُھْتَدٍ۔وَکَثِیْرٌ مِّنْہُمْ فٰسِقُوْنَ۔ ثُمَّ قَفَّیْنَا عَلیٰٓ اٰثَارِہِمْ بِرُسُلِنَا صژص ژ8 (حدید:۲۶،۲۷)‘‘ صژص''', style: Get.textTheme.headline6, parse: <MatchText>[ MatchText( pattern: r'(?<=ژژ).*(?=ژژ)', style: TextStyle( color: Colors.red, fontSize: 24, ), renderText: ({String str, String pattern}) { Map<String, String> map = Map<String, String>(); RegExp customRegExp = RegExp(pattern); Match match = customRegExp.firstMatch(str); map['display'] = '\n'; map['value'] = match.group(2); print(match.group(1)); print(match.group(2)); return map; }, ), ], ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant